w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::Rw11VirtDiskOver Class Reference

FIXME_docs. More...

#include <Rw11VirtDiskOver.hpp>

Inheritance diagram for Retro::Rw11VirtDiskOver:
[legend]
Collaboration diagram for Retro::Rw11VirtDiskOver:
[legend]

Public Types

enum  stats {
  kStatNVDORead = Rw11VirtDiskFile::kDimStat , kStatNVDOReadBlkFF , kStatNVDOReadBlkFP , kStatNVDOReadBlkO ,
  kStatNVDOWrite , kStatNVDOWriteBlk , kStatNVDOFlush , kDimStat
}
 
typedef std::map< uint32_t, Rw11VirtDiskBufferbmap_t
 
- Public Types inherited from Retro::Rw11VirtDiskFile
enum  stats { kDimStat = Rw11VirtDisk::kDimStat }
 
- Public Types inherited from Retro::Rw11VirtDisk
enum  stats {
  kStatNVDRead = Rw11Virt::kDimStat , kStatNVDReadBlk , kStatNVDWrite , kStatNVDWriteBlk ,
  kDimStat
}
 
- Public Types inherited from Retro::Rw11Virt
enum  stats { kDimStat = 0 }
 

Public Member Functions

 Rw11VirtDiskOver (Rw11Unit *punit)
 Default constructor.
 
 ~Rw11VirtDiskOver ()
 Destructor.
 
virtual bool WProt () const
 FIXME_docs.
 
virtual bool Open (const std::string &url, RerrMsg &emsg)
 FIXME_docs.
 
virtual bool Read (size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)
 FIXME_docs.
 
virtual bool Write (size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)
 FIXME_docs.
 
bool Flush (RerrMsg &emsg)
 FIXME_docs.
 
void List (std::ostream &os) const
 FIXME_docs.
 
virtual void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 
- Public Member Functions inherited from Retro::Rw11VirtDiskFile
 Rw11VirtDiskFile (Rw11Unit *punit)
 Default constructor.
 
virtual bool Open (const std::string &url, RerrMsg &emsg)
 FIXME_docs.
 
bool Open (const std::string &url, const std::string &scheme, RerrMsg &emsg)
 FIXME_docs.
 
virtual bool Read (size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)
 FIXME_docs.
 
virtual bool Write (size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)
 FIXME_docs.
 
virtual void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 
- Public Member Functions inherited from Retro::Rw11VirtDisk
 Rw11VirtDisk (Rw11Unit *punit)
 Default constructor.
 
void Setup (size_t blksize, size_t nblock, size_t ncyl, size_t nhead, size_t nsect)
 FIXME_docs.
 
size_t BlockSize () const
 FIXME_docs.
 
size_t NBlock () const
 FIXME_docs.
 
size_t NCylinder () const
 FIXME_docs.
 
size_t NHead () const
 FIXME_docs.
 
size_t NSector () const
 FIXME_docs.
 
virtual bool Read (size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)=0
 
virtual bool Write (size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)=0
 
virtual void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 
- Public Member Functions inherited from Retro::Rw11Virt
 Rw11Virt (Rw11Unit *punit)
 Default constructor.
 
virtual ~Rw11Virt ()
 Destructor.
 
 Rw11Virt (const Rw11Virt &)=delete
 
Rw11Virtoperator= (const Rw11Virt &)=delete
 
Rw11UnitUnit () const
 FIXME_docs.
 
Rw11CntlCntl () const
 FIXME_docs.
 
Rw11CpuCpu () const
 FIXME_docs.
 
Rw11W11 () const
 FIXME_docs.
 
RlinkServerServer () const
 FIXME_docs.
 
RlogFileLogFile () const
 FIXME_docs.
 
virtual bool WProt () const
 FIXME_docs.
 
const RparseUrlUrl () const
 FIXME_docs.
 
virtual bool Open (const std::string &url, RerrMsg &emsg)=0
 
RstatsStats ()
 FIXME_docs.
 
virtual void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 

Protected Attributes

bmap_t fBlkMap
 
- Protected Attributes inherited from Retro::Rw11VirtDiskFile
RfileFd fFd
 
size_t fSize
 
- Protected Attributes inherited from Retro::Rw11VirtDisk
size_t fBlkSize
 block size in byte
 
size_t fNBlock
 disk size in blocks
 
size_t fNCyl
 
size_t fNHead
 
size_t fNSect
 
- Protected Attributes inherited from Retro::Rw11Virt
Rw11UnitfpUnit
 back ref to unit
 
RparseUrl fUrl
 
bool fWProt
 write protected
 
Rstats fStats
 statistics
 

Additional Inherited Members

- Static Public Member Functions inherited from Retro::Rw11VirtDisk
static std::unique_ptr< Rw11VirtDiskNew (const std::string &url, Rw11Unit *punit, RerrMsg &emsg)
 FIXME_docs.
 
static const std::string & DefaultScheme ()
 FIXME_docs.
 
static void SetDefaultScheme (const std::string &scheme)
 FIXME_docs.
 
- Static Protected Attributes inherited from Retro::Rw11VirtDisk
static std::string sDefaultScheme
 default scheme
 

Detailed Description

FIXME_docs.

Definition at line 28 of file Rw11VirtDiskOver.hpp.

Member Typedef Documentation

◆ bmap_t

Definition at line 31 of file Rw11VirtDiskOver.hpp.

Member Enumeration Documentation

◆ stats

Enumerator
kStatNVDORead 
kStatNVDOReadBlkFF 
kStatNVDOReadBlkFP 
kStatNVDOReadBlkO 
kStatNVDOWrite 
kStatNVDOWriteBlk 
kStatNVDOFlush 
kDimStat 

Definition at line 52 of file Rw11VirtDiskOver.hpp.

Constructor & Destructor Documentation

◆ Rw11VirtDiskOver()

Retro::Rw11VirtDiskOver::Rw11VirtDiskOver ( Rw11Unit punit)
explicit

◆ ~Rw11VirtDiskOver()

Retro::Rw11VirtDiskOver::~Rw11VirtDiskOver ( )

Destructor.

Definition at line 57 of file Rw11VirtDiskOver.cpp.

Member Function Documentation

◆ WProt()

bool Retro::Rw11VirtDiskOver::WProt ( ) const
virtual

FIXME_docs.

Reimplemented from Retro::Rw11Virt.

Definition at line 63 of file Rw11VirtDiskOver.cpp.

◆ Open()

bool Retro::Rw11VirtDiskOver::Open ( const std::string &  url,
RerrMsg emsg 
)
virtual

FIXME_docs.

Reimplemented from Retro::Rw11VirtDiskFile.

Definition at line 71 of file Rw11VirtDiskOver.cpp.

References Retro::Rw11VirtDiskFile::Open().

◆ Read()

bool Retro::Rw11VirtDiskOver::Read ( size_t  lba,
size_t  nblk,
uint8_t *  data,
RerrMsg emsg 
)
virtual

◆ Write()

bool Retro::Rw11VirtDiskOver::Write ( size_t  lba,
size_t  nblk,
const uint8_t *  data,
RerrMsg emsg 
)
virtual

◆ Flush()

bool Retro::Rw11VirtDiskOver::Flush ( RerrMsg emsg)

◆ List()

void Retro::Rw11VirtDiskOver::List ( std::ostream &  os) const

FIXME_docs.

Definition at line 147 of file Rw11VirtDiskOver.cpp.

References fBlkMap, and Retro::RosPrintf().

Referenced by Retro::RtclRw11VirtDiskOver::M_list().

◆ Dump()

void Retro::Rw11VirtDiskOver::Dump ( std::ostream &  os,
int  ind = 0,
const char *  text = 0,
int  detail = 0 
) const
virtual

FIXME_docs.

Reimplemented from Retro::Rw11VirtDiskFile.

Definition at line 172 of file Rw11VirtDiskOver.cpp.

References Retro::Rw11VirtDiskFile::Dump(), and fBlkMap.

Member Data Documentation

◆ fBlkMap

bmap_t Retro::Rw11VirtDiskOver::fBlkMap
protected

Definition at line 64 of file Rw11VirtDiskOver.hpp.

Referenced by Dump(), Flush(), List(), Read(), and Write().


The documentation for this class was generated from the following files: