70 os << bl << (text?text:
"--") <<
"Rw11VirtDisk @ " <<
this << endl;
72 os << bl <<
" fBlkSize: " <<
fBlkSize << endl;
73 os << bl <<
" fNBlock: " <<
fNBlock << endl;
74 os << bl <<
" fNCyl: " <<
fNCyl << endl;
75 os << bl <<
" fNHead: " <<
fNHead << endl;
76 os << bl <<
" fNSect: " <<
fNSect << endl;
89 unique_ptr<Rw11VirtDisk> up;
91 if (scheme ==
"file") {
93 if (!up->Open(url, emsg)) up.reset();
95 }
else if (scheme ==
"over") {
97 if (!up->Open(url, emsg)) up.reset();
99 }
else if (scheme ==
"ram") {
101 if (!up->Open(url, emsg)) up.reset();
104 emsg.
Init(
"Rw11VirtDisk::New",
string(
"Scheme '") + scheme +
105 "' is not supported");
123 if (scheme !=
"file" && scheme !=
"over")
124 throw Rexception(
"Rw11VirtDisk::SetDefaultScheme",
125 "only 'file' or 'over' allowed");
void Init(const std::string &meth, const std::string &text)
FIXME_docs.
I/O appicator to generate fill characters.
static std::string FindScheme(const std::string &url, const std::string &def="")
FIXME_docs.
void Define(size_t ind, const std::string &name, const std::string &text)
FIXME_docs.
static void SetDefaultScheme(const std::string &scheme)
FIXME_docs.
static std::string sDefaultScheme
default scheme
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
Rw11VirtDisk(Rw11Unit *punit)
Default constructor.
static const std::string & DefaultScheme()
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Declaration of class ReventLoop.