21#ifndef included_Retro_Rw11VirtDisk
22#define included_Retro_Rw11VirtDisk 1
35 void Setup(
size_t blksize,
size_t nblock,
36 size_t ncyl,
size_t nhead,
size_t nsect);
43 virtual bool Read(
size_t lba,
size_t nblk, uint8_t* data,
45 virtual bool Write(
size_t lba,
size_t nblk,
const uint8_t* data,
48 virtual void Dump(std::ostream& os,
int ind=0,
const char* text=0,
51 static std::unique_ptr<Rw11VirtDisk>
New(
const std::string& url,
static void SetDefaultScheme(const std::string &scheme)
FIXME_docs.
static std::string sDefaultScheme
default scheme
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
static std::unique_ptr< Rw11VirtDisk > New(const std::string &url, Rw11Unit *punit, RerrMsg &emsg)
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
size_t fNBlock
disk size in blocks
size_t fBlkSize
block size in byte
size_t NHead() const
FIXME_docs.
size_t NCylinder() const
FIXME_docs.
void Setup(size_t blksize, size_t nblock, size_t ncyl, size_t nhead, size_t nsect)
FIXME_docs.
static const std::string & DefaultScheme()
FIXME_docs.
size_t BlockSize() const
FIXME_docs.
size_t NBlock() const
FIXME_docs.
Declaration of class ReventLoop.