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

FIXME_docs. More...

#include <Rw11VirtDisk.hpp>

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

Public Types

enum  stats {
  kStatNVDRead = Rw11Virt::kDimStat , kStatNVDReadBlk , kStatNVDWrite , kStatNVDWriteBlk ,
  kDimStat
}
 
- Public Types inherited from Retro::Rw11Virt
enum  stats { kDimStat = 0 }
 

Public Member Functions

 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.
 

Static Public Member Functions

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.
 

Protected Attributes

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
 

Static Protected Attributes

static std::string sDefaultScheme
 default scheme
 

Detailed Description

FIXME_docs.

Definition at line 31 of file Rw11VirtDisk.hpp.

Member Enumeration Documentation

◆ stats

Enumerator
kStatNVDRead 
kStatNVDReadBlk 
kStatNVDWrite 
kStatNVDWriteBlk 
kDimStat 

Definition at line 58 of file Rw11VirtDisk.hpp.

Constructor & Destructor Documentation

◆ Rw11VirtDisk()

Retro::Rw11VirtDisk::Rw11VirtDisk ( Rw11Unit punit)
explicit

Member Function Documentation

◆ Setup()

void Retro::Rw11VirtDisk::Setup ( size_t  blksize,
size_t  nblock,
size_t  ncyl,
size_t  nhead,
size_t  nsect 
)
inline

FIXME_docs.

Definition at line 22 of file Rw11VirtDisk.ipp.

References fBlkSize, fNBlock, fNCyl, fNHead, and fNSect.

◆ BlockSize()

size_t Retro::Rw11VirtDisk::BlockSize ( ) const
inline

FIXME_docs.

Definition at line 36 of file Rw11VirtDisk.ipp.

References fBlkSize.

◆ NBlock()

size_t Retro::Rw11VirtDisk::NBlock ( ) const
inline

FIXME_docs.

Definition at line 44 of file Rw11VirtDisk.ipp.

References fNBlock.

◆ NCylinder()

size_t Retro::Rw11VirtDisk::NCylinder ( ) const
inline

FIXME_docs.

Definition at line 52 of file Rw11VirtDisk.ipp.

References fNCyl.

◆ NHead()

size_t Retro::Rw11VirtDisk::NHead ( ) const
inline

FIXME_docs.

Definition at line 60 of file Rw11VirtDisk.ipp.

References fNHead.

◆ NSector()

size_t Retro::Rw11VirtDisk::NSector ( ) const
inline

FIXME_docs.

Definition at line 68 of file Rw11VirtDisk.ipp.

References fNSect.

◆ Read()

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

◆ Write()

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

◆ Dump()

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

◆ New()

std::unique_ptr< Rw11VirtDisk > Retro::Rw11VirtDisk::New ( const std::string &  url,
Rw11Unit punit,
RerrMsg emsg 
)
static

FIXME_docs.

Definition at line 84 of file Rw11VirtDisk.cpp.

References Retro::RparseUrl::FindScheme(), Retro::RerrMsg::Init(), and sDefaultScheme.

◆ DefaultScheme()

const std::string & Retro::Rw11VirtDisk::DefaultScheme ( )
static

FIXME_docs.

Definition at line 114 of file Rw11VirtDisk.cpp.

References sDefaultScheme.

Referenced by Retro::RtclRw11::RtclRw11().

◆ SetDefaultScheme()

void Retro::Rw11VirtDisk::SetDefaultScheme ( const std::string &  scheme)
static

FIXME_docs.

Definition at line 121 of file Rw11VirtDisk.cpp.

References sDefaultScheme.

Referenced by Retro::RtclRw11::RtclRw11().

Member Data Documentation

◆ fBlkSize

◆ fNBlock

size_t Retro::Rw11VirtDisk::fNBlock
protected

disk size in blocks

Definition at line 68 of file Rw11VirtDisk.hpp.

Referenced by Dump(), NBlock(), Retro::Rw11VirtDiskRam::ReadPattern(), and Setup().

◆ fNCyl

size_t Retro::Rw11VirtDisk::fNCyl
protected

cylinder

Definition at line 69 of file Rw11VirtDisk.hpp.

Referenced by Dump(), NCylinder(), Retro::Rw11VirtDiskRam::ReadPattern(), and Setup().

◆ fNHead

size_t Retro::Rw11VirtDisk::fNHead
protected

heads (aka surfaces)

Definition at line 70 of file Rw11VirtDisk.hpp.

Referenced by Dump(), NHead(), Retro::Rw11VirtDiskRam::ReadPattern(), and Setup().

◆ fNSect

size_t Retro::Rw11VirtDisk::fNSect
protected

sectors

Definition at line 71 of file Rw11VirtDisk.hpp.

Referenced by Dump(), NSector(), Retro::Rw11VirtDiskRam::ReadPattern(), and Setup().

◆ sDefaultScheme

std::string Retro::Rw11VirtDisk::sDefaultScheme
staticprotected

default scheme

Definition at line 74 of file Rw11VirtDisk.hpp.

Referenced by DefaultScheme(), New(), and SetDefaultScheme().


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