58 string(
"Bad args: only type '") +
fType +
"' supported");
67 "not allowed when tape attached");
78 "not allowed when tape attached");
157 emsg.
Init(
"Rw11UnitTape::VirtReadRecord",
"no tape attached");
170 emsg.
Init(
"Rw11UnitTape::VirtWriteRecord",
"no tape attached");
182 emsg.
Init(
"Rw11UnitTape::VirtWriteEof",
"no tape attached");
195 emsg.
Init(
"Rw11UnitTape::VirtSpaceForw",
"no tape attached");
208 emsg.
Init(
"Rw11UnitTape::VirtSpaceBack",
"no tape attached");
220 emsg.
Init(
"Rw11UnitTape::VirtRewind",
"no tape attached");
233 os << bl << (text?text:
"--") <<
"Rw11UnitTape @ " <<
this << endl;
234 os << bl <<
" fType: " <<
fType << endl;
237 os << bl <<
" fCapacity: " <<
fCapacity << endl;
void Init(const std::string &meth, const std::string &text)
FIXME_docs.
I/O appicator to generate fill characters.
bool VirtWriteRecord(size_t nbyte, const uint8_t *data, int &opcode, RerrMsg &emsg)
FIXME_docs.
bool Eom() const
FIXME_docs.
virtual void SetType(const std::string &type)
FIXME_docs.
bool VirtSpaceForw(size_t nrec, size_t &ndone, int &opcode, RerrMsg &emsg)
FIXME_docs.
size_t fCapacity
capacity in byte (0=unlimited)
bool Eot() const
FIXME_docs.
bool fEnabled
unit enabled
std::string fType
drive type
void SetCapacity(size_t nbyte)
FIXME_docs.
void SetPosRecord(int posrec)
FIXME_docs.
bool VirtSpaceBack(size_t nrec, size_t &ndone, int &opcode, RerrMsg &emsg)
FIXME_docs.
int PosFile() const
FIXME_docs.
bool VirtRewind(int &opcode, RerrMsg &emsg)
FIXME_docs.
bool Bot() const
FIXME_docs.
~Rw11UnitTape()
Destructor.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
bool VirtWriteEof(RerrMsg &emsg)
FIXME_docs.
bool VirtReadRecord(size_t nbyte, uint8_t *data, size_t &ndone, int &opcode, RerrMsg &emsg)
FIXME_docs.
bool fWProt
unit write protected
int PosRecord() const
FIXME_docs.
void SetWProt(bool wprot)
FIXME_docs.
void SetPosFile(int posfile)
FIXME_docs.
Rw11UnitTape(Rw11Cntl *pcntl, size_t index)
Constructor.
Implemenation (inline) of Rw11UnitVirt.
Rw11VirtTape & Virt()
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
bool HasVirt() const
FIXME_docs.
void SetPosFile(int posfile)
FIXME_docs.
virtual bool SpaceForw(size_t nrec, size_t &ndone, int &opcode, RerrMsg &emsg)=0
bool Eom() const
FIXME_docs.
int PosFile() const
FIXME_docs.
int PosRecord() const
FIXME_docs.
void SetPosRecord(int posrec)
FIXME_docs.
virtual bool Rewind(int &opcode, RerrMsg &emsg)=0
bool Eot() const
FIXME_docs.
virtual bool WriteRecord(size_t nbyte, const uint8_t *data, int &opcode, RerrMsg &emsg)=0
virtual bool ReadRecord(size_t nbyte, uint8_t *data, size_t &ndone, int &opcode, RerrMsg &emsg)=0
virtual bool SpaceBack(size_t nrec, size_t &ndone, int &opcode, RerrMsg &emsg)=0
bool Bot() const
FIXME_docs.
virtual bool WriteEof(RerrMsg &emsg)=0
RosPrintfS< bool > RosPrintf(bool value, const char *form=0, int width=0, int prec=0)
Creates a print object for the formatted output of a bool value.
Declaration of class ReventLoop.