w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <Rw11UnitTape.hpp>
Public Member Functions | |
Rw11UnitTape (Rw11Cntl *pcntl, size_t index) | |
Constructor. | |
~Rw11UnitTape () | |
Destructor. | |
virtual void | SetType (const std::string &type) |
FIXME_docs. | |
const std::string & | Type () const |
FIXME_docs. | |
virtual bool | Enabled () const |
FIXME_docs. | |
void | SetWProt (bool wprot) |
FIXME_docs. | |
void | SetCapacity (size_t nbyte) |
FIXME_docs. | |
bool | WProt () const |
FIXME_docs. | |
size_t | Capacity () const |
FIXME_docs. | |
void | SetPosFile (int posfile) |
FIXME_docs. | |
void | SetPosRecord (int posrec) |
FIXME_docs. | |
bool | Bot () const |
FIXME_docs. | |
bool | Eot () const |
FIXME_docs. | |
bool | Eom () const |
FIXME_docs. | |
int | PosFile () const |
FIXME_docs. | |
int | PosRecord () const |
FIXME_docs. | |
bool | VirtReadRecord (size_t nbyte, uint8_t *data, size_t &ndone, int &opcode, RerrMsg &emsg) |
FIXME_docs. | |
bool | VirtWriteRecord (size_t nbyte, const uint8_t *data, int &opcode, RerrMsg &emsg) |
FIXME_docs. | |
bool | VirtWriteEof (RerrMsg &emsg) |
FIXME_docs. | |
bool | VirtSpaceForw (size_t nrec, size_t &ndone, int &opcode, RerrMsg &emsg) |
FIXME_docs. | |
bool | VirtSpaceBack (size_t nrec, size_t &ndone, int &opcode, RerrMsg &emsg) |
FIXME_docs. | |
bool | VirtRewind (int &opcode, 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::Rw11UnitVirt< Rw11VirtTape > | |
Rw11UnitVirt (Rw11Cntl *pcntl, size_t index) | |
Default constructor. | |
~Rw11UnitVirt () | |
Destructor. | |
bool | HasVirt () const |
FIXME_docs. | |
Rw11VirtTape & | Virt () |
FIXME_docs. | |
const Rw11VirtTape & | Virt () const |
FIXME_docs. | |
virtual Rw11Virt * | VirtBase () const |
FIXME_docs. | |
virtual bool | Attach (const std::string &url, RerrMsg &emsg) |
FIXME_docs. | |
virtual void | Detach () |
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::Rw11Unit | |
Rw11Unit (Rw11Cntl *pcntl, size_t index) | |
Constructor. | |
virtual | ~Rw11Unit () |
Destructor. | |
Rw11Unit (const Rw11Unit &)=delete | |
Rw11Unit & | operator= (const Rw11Unit &)=delete |
size_t | Index () const |
FIXME_docs. | |
std::string | Name () const |
FIXME_docs. | |
void | SetAttachOpts (const std::string &opts) |
FIXME_docs. | |
const std::string & | AttachOpts () const |
FIXME_docs. | |
Rw11Cntl & | CntlBase () const |
FIXME_docs. | |
Rw11Cpu & | Cpu () const |
FIXME_docs. | |
Rw11 & | W11 () const |
FIXME_docs. | |
RlinkServer & | Server () const |
FIXME_docs. | |
RlinkConnect & | Connect () const |
FIXME_docs. | |
RlogFile & | LogFile () const |
FIXME_docs. | |
virtual bool | Enabled () const |
FIXME_docs. | |
virtual Rw11Virt * | VirtBase () const =0 |
bool | IsAttached () const |
FIXME_docs. | |
const std::string & | AttachUrl () const |
FIXME_docs. | |
virtual bool | Attach (const std::string &url, RerrMsg &emsg) |
FIXME_docs. | |
virtual void | Detach () |
FIXME_docs. | |
Rstats & | Stats () |
FIXME_docs. | |
virtual void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
FIXME_docs. | |
Protected Attributes | |
std::string | fType |
drive type | |
bool | fEnabled |
unit enabled | |
bool | fWProt |
unit write protected | |
size_t | fCapacity |
capacity in byte (0=unlimited) | |
Protected Attributes inherited from Retro::Rw11UnitVirt< Rw11VirtTape > | |
std::unique_ptr< Rw11VirtTape > | fupVirt |
Protected Attributes inherited from Retro::Rw11Unit | |
Rw11Cntl * | fpCntlBase |
plain Rw11Cntl ptr | |
size_t | fIndex |
unit number | |
std::string | fAttachOpts |
unit context options for attach | |
Rstats | fStats |
statistics | |
Additional Inherited Members | |
Public Types inherited from Retro::Rw11Unit | |
enum | stats { kDimStat = 0 } |
Static Public Attributes inherited from Retro::Rbits | |
static const uint8_t | kBBit00 = 1u<< 0 |
static const uint8_t | kBBit01 = 1u<< 1 |
static const uint8_t | kBBit02 = 1u<< 2 |
static const uint8_t | kBBit03 = 1u<< 3 |
static const uint8_t | kBBit04 = 1u<< 4 |
static const uint8_t | kBBit05 = 1u<< 5 |
static const uint8_t | kBBit06 = 1u<< 6 |
static const uint8_t | kBBit07 = 1u<< 7 |
static const uint16_t | kWBit00 = 1u<< 0 |
static const uint16_t | kWBit01 = 1u<< 1 |
static const uint16_t | kWBit02 = 1u<< 2 |
static const uint16_t | kWBit03 = 1u<< 3 |
static const uint16_t | kWBit04 = 1u<< 4 |
static const uint16_t | kWBit05 = 1u<< 5 |
static const uint16_t | kWBit06 = 1u<< 6 |
static const uint16_t | kWBit07 = 1u<< 7 |
static const uint16_t | kWBit08 = 1u<< 8 |
static const uint16_t | kWBit09 = 1u<< 9 |
static const uint16_t | kWBit10 = 1u<<10 |
static const uint16_t | kWBit11 = 1u<<11 |
static const uint16_t | kWBit12 = 1u<<12 |
static const uint16_t | kWBit13 = 1u<<13 |
static const uint16_t | kWBit14 = 1u<<14 |
static const uint16_t | kWBit15 = 1u<<15 |
static const uint32_t | kLBit00 = 1u<< 0 |
static const uint32_t | kLBit01 = 1u<< 1 |
static const uint32_t | kLBit02 = 1u<< 2 |
static const uint32_t | kLBit03 = 1u<< 3 |
static const uint32_t | kLBit04 = 1u<< 4 |
static const uint32_t | kLBit05 = 1u<< 5 |
static const uint32_t | kLBit06 = 1u<< 6 |
static const uint32_t | kLBit07 = 1u<< 7 |
static const uint32_t | kLBit08 = 1u<< 8 |
static const uint32_t | kLBit09 = 1u<< 9 |
static const uint32_t | kLBit10 = 1u<<10 |
static const uint32_t | kLBit11 = 1u<<11 |
static const uint32_t | kLBit12 = 1u<<12 |
static const uint32_t | kLBit13 = 1u<<13 |
static const uint32_t | kLBit14 = 1u<<14 |
static const uint32_t | kLBit15 = 1u<<15 |
static const uint32_t | kLBit16 = 1u<<16 |
static const uint32_t | kLBit17 = 1u<<17 |
static const uint32_t | kLBit18 = 1u<<18 |
static const uint32_t | kLBit19 = 1u<<19 |
static const uint32_t | kLBit20 = 1u<<20 |
static const uint32_t | kLBit21 = 1u<<21 |
static const uint32_t | kLBit22 = 1u<<22 |
static const uint32_t | kLBit23 = 1u<<23 |
static const uint32_t | kLBit24 = 1u<<24 |
static const uint32_t | kLBit25 = 1u<<25 |
static const uint32_t | kLBit26 = 1u<<26 |
static const uint32_t | kLBit27 = 1u<<27 |
static const uint32_t | kLBit28 = 1u<<28 |
static const uint32_t | kLBit29 = 1u<<29 |
static const uint32_t | kLBit30 = 1u<<30 |
static const uint32_t | kLBit31 = 1u<<31 |
Protected Member Functions inherited from Retro::Rw11Unit | |
virtual void | AttachDone () |
FIXME_docs. | |
virtual void | DetachCleanup () |
FIXME_docs. | |
virtual void | DetachDone () |
FIXME_docs. | |
FIXME_docs.
Definition at line 26 of file Rw11UnitTape.hpp.
Retro::Rw11UnitTape::Rw11UnitTape | ( | Rw11Cntl * | pcntl, |
size_t | index | ||
) |
Constructor.
Definition at line 38 of file Rw11UnitTape.cpp.
Retro::Rw11UnitTape::~Rw11UnitTape | ( | ) |
Destructor.
Definition at line 49 of file Rw11UnitTape.cpp.
|
virtual |
FIXME_docs.
Definition at line 55 of file Rw11UnitTape.cpp.
References fType.
Referenced by Retro::RtclRw11UnitTape::SetupGetSet().
|
inline |
FIXME_docs.
Definition at line 22 of file Rw11UnitTape.ipp.
References fType.
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default(), and Retro::RtclRw11UnitTape::SetupGetSet().
|
inlinevirtual |
FIXME_docs.
Reimplemented from Retro::Rw11Unit.
Definition at line 30 of file Rw11UnitTape.ipp.
References fEnabled.
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default().
void Retro::Rw11UnitTape::SetWProt | ( | bool | wprot | ) |
FIXME_docs.
Definition at line 64 of file Rw11UnitTape.cpp.
References fWProt, and Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt().
Referenced by Retro::RtclRw11UnitTape::SetupGetSet().
void Retro::Rw11UnitTape::SetCapacity | ( | size_t | nbyte | ) |
FIXME_docs.
Definition at line 75 of file Rw11UnitTape.cpp.
References fCapacity, and Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt().
Referenced by Retro::RtclRw11UnitTape::SetupGetSet().
|
inline |
FIXME_docs.
Definition at line 38 of file Rw11UnitTape.ipp.
References fWProt, Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::Rw11UnitVirt< Rw11VirtTape >::Virt(), and Retro::Rw11Virt::WProt().
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default(), and Retro::RtclRw11UnitTape::SetupGetSet().
|
inline |
FIXME_docs.
Definition at line 46 of file Rw11UnitTape.ipp.
References Retro::Rw11VirtTape::Capacity(), fCapacity, Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default(), and Retro::RtclRw11UnitTape::SetupGetSet().
void Retro::Rw11UnitTape::SetPosFile | ( | int | posfile | ) |
FIXME_docs.
Definition at line 86 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::Rw11VirtTape::SetPosFile(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::RtclRw11UnitTape::SetupGetSet().
void Retro::Rw11UnitTape::SetPosRecord | ( | int | posrec | ) |
FIXME_docs.
Definition at line 97 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::Rw11VirtTape::SetPosRecord(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::RtclRw11UnitTape::SetupGetSet().
bool Retro::Rw11UnitTape::Bot | ( | ) | const |
FIXME_docs.
Definition at line 108 of file Rw11UnitTape.cpp.
References Retro::Rw11VirtTape::Bot(), Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default(), and Retro::RtclRw11UnitTape::SetupGetSet().
bool Retro::Rw11UnitTape::Eot | ( | ) | const |
FIXME_docs.
Definition at line 117 of file Rw11UnitTape.cpp.
References Retro::Rw11VirtTape::Eot(), Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default(), and Retro::RtclRw11UnitTape::SetupGetSet().
bool Retro::Rw11UnitTape::Eom | ( | ) | const |
FIXME_docs.
Definition at line 126 of file Rw11UnitTape.cpp.
References Retro::Rw11VirtTape::Eom(), Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default(), and Retro::RtclRw11UnitTape::SetupGetSet().
int Retro::Rw11UnitTape::PosFile | ( | ) | const |
FIXME_docs.
Definition at line 135 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::Rw11VirtTape::PosFile(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default(), and Retro::RtclRw11UnitTape::SetupGetSet().
int Retro::Rw11UnitTape::PosRecord | ( | ) | const |
FIXME_docs.
Definition at line 144 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::Rw11VirtTape::PosRecord(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::RtclRw11CntlTapeBase< TC >::M_default(), and Retro::RtclRw11UnitTape::SetupGetSet().
bool Retro::Rw11UnitTape::VirtReadRecord | ( | size_t | nbyte, |
uint8_t * | data, | ||
size_t & | ndone, | ||
int & | opcode, | ||
RerrMsg & | emsg | ||
) |
FIXME_docs.
Definition at line 153 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::RerrMsg::Init(), Retro::Rw11VirtTape::ReadRecord(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::Rw11CntlTM11::AttnHandler().
bool Retro::Rw11UnitTape::VirtWriteRecord | ( | size_t | nbyte, |
const uint8_t * | data, | ||
int & | opcode, | ||
RerrMsg & | emsg | ||
) |
FIXME_docs.
Definition at line 166 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::RerrMsg::Init(), Retro::Rw11UnitVirt< Rw11VirtTape >::Virt(), and Retro::Rw11VirtTape::WriteRecord().
Referenced by Retro::Rw11CntlTM11::AddNormalExit().
bool Retro::Rw11UnitTape::VirtWriteEof | ( | RerrMsg & | emsg | ) |
FIXME_docs.
Definition at line 179 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::RerrMsg::Init(), Retro::Rw11UnitVirt< Rw11VirtTape >::Virt(), and Retro::Rw11VirtTape::WriteEof().
Referenced by Retro::Rw11CntlTM11::AttnHandler().
bool Retro::Rw11UnitTape::VirtSpaceForw | ( | size_t | nrec, |
size_t & | ndone, | ||
int & | opcode, | ||
RerrMsg & | emsg | ||
) |
FIXME_docs.
Definition at line 191 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::RerrMsg::Init(), Retro::Rw11VirtTape::SpaceForw(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::Rw11CntlTM11::AttnHandler().
bool Retro::Rw11UnitTape::VirtSpaceBack | ( | size_t | nrec, |
size_t & | ndone, | ||
int & | opcode, | ||
RerrMsg & | emsg | ||
) |
FIXME_docs.
Definition at line 204 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::RerrMsg::Init(), Retro::Rw11VirtTape::SpaceBack(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::Rw11CntlTM11::AttnHandler().
bool Retro::Rw11UnitTape::VirtRewind | ( | int & | opcode, |
RerrMsg & | emsg | ||
) |
FIXME_docs.
Definition at line 217 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< Rw11VirtTape >::HasVirt(), Retro::RerrMsg::Init(), Retro::Rw11VirtTape::Rewind(), and Retro::Rw11UnitVirt< Rw11VirtTape >::Virt().
Referenced by Retro::Rw11CntlTM11::AttnHandler().
|
virtual |
FIXME_docs.
Reimplemented from Retro::Rw11UnitVirt< Rw11VirtTape >.
Reimplemented in Retro::Rw11UnitTapeBase< TC >, Retro::Rw11UnitTapeBase< Rw11CntlTM11 >, and Retro::Rw11UnitTM11.
Definition at line 229 of file Rw11UnitTape.cpp.
References Retro::Rw11UnitVirt< TV >::Dump(), fCapacity, fEnabled, fType, fWProt, and Retro::RosPrintf().
Referenced by Retro::Rw11UnitTapeBase< TC >::Dump().
|
protected |
drive type
Definition at line 66 of file Rw11UnitTape.hpp.
Referenced by Dump(), Retro::Rw11UnitTM11::Rw11UnitTM11(), SetType(), and Type().
|
protected |
unit enabled
Definition at line 67 of file Rw11UnitTape.hpp.
Referenced by Dump(), Enabled(), and Retro::Rw11UnitTM11::Rw11UnitTM11().
|
protected |
unit write protected
Definition at line 68 of file Rw11UnitTape.hpp.
Referenced by Dump(), SetWProt(), and WProt().
|
protected |
capacity in byte (0=unlimited)
Definition at line 69 of file Rw11UnitTape.hpp.
Referenced by Capacity(), Dump(), and SetCapacity().