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

FIXME_docs. More...

#include <Rw11VirtStream.hpp>

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

Public Types

enum  stats {
  kStatNVSRead = Rw11Virt::kDimStat , kStatNVSReadByt , kStatNVSWrite , kStatNVSWriteByt ,
  kStatNVSFlush , kStatNVSTell , kStatNVSSeek , kDimStat
}
 
- Public Types inherited from Retro::Rw11Virt
enum  stats { kDimStat = 0 }
 

Public Member Functions

 Rw11VirtStream (Rw11Unit *punit)
 Default constructor.
 
 ~Rw11VirtStream ()
 Destructor.
 
virtual bool Open (const std::string &url, RerrMsg &emsg)
 FIXME_docs.
 
int Read (uint8_t *data, size_t count, RerrMsg &emsg)
 FIXME_docs.
 
bool Write (const uint8_t *data, size_t count, RerrMsg &emsg)
 FIXME_docs.
 
bool Flush (RerrMsg &emsg)
 FIXME_docs.
 
int Tell (RerrMsg &emsg)
 FIXME_docs.
 
bool Seek (int pos, RerrMsg &emsg)
 FIXME_docs.
 
bool Error () const
 FIXME_docs.
 
bool Eof () const
 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::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< Rw11VirtStreamNew (const std::string &url, Rw11Unit *punit, RerrMsg &emsg)
 FIXME_docs.
 

Protected Attributes

bool fIStream
 is input (read only) stream
 
bool fOStream
 is output (write only) stream
 
FILE * fFile
 file ptr
 
- Protected Attributes inherited from Retro::Rw11Virt
Rw11UnitfpUnit
 back ref to unit
 
RparseUrl fUrl
 
bool fWProt
 write protected
 
Rstats fStats
 statistics
 

Detailed Description

FIXME_docs.

Definition at line 29 of file Rw11VirtStream.hpp.

Member Enumeration Documentation

◆ stats

Enumerator
kStatNVSRead 
kStatNVSReadByt 
kStatNVSWrite 
kStatNVSWriteByt 
kStatNVSFlush 
kStatNVSTell 
kStatNVSSeek 
kDimStat 

Definition at line 52 of file Rw11VirtStream.hpp.

Constructor & Destructor Documentation

◆ Rw11VirtStream()

Retro::Rw11VirtStream::Rw11VirtStream ( Rw11Unit punit)
explicit

◆ ~Rw11VirtStream()

Retro::Rw11VirtStream::~Rw11VirtStream ( )

Destructor.

Definition at line 61 of file Rw11VirtStream.cpp.

References fFile.

Member Function Documentation

◆ Open()

◆ Read()

int Retro::Rw11VirtStream::Read ( uint8_t *  data,
size_t  count,
RerrMsg emsg 
)

◆ Write()

bool Retro::Rw11VirtStream::Write ( const uint8_t *  data,
size_t  count,
RerrMsg emsg 
)

◆ Flush()

bool Retro::Rw11VirtStream::Flush ( RerrMsg emsg)

◆ Tell()

int Retro::Rw11VirtStream::Tell ( RerrMsg emsg)

◆ Seek()

bool Retro::Rw11VirtStream::Seek ( int  pos,
RerrMsg emsg 
)

◆ Error()

bool Retro::Rw11VirtStream::Error ( ) const

FIXME_docs.

Definition at line 209 of file Rw11VirtStream.cpp.

References fFile.

Referenced by Retro::Rw11CntlLP11::UnitSetup(), and Retro::Rw11CntlPC11::UnitSetup().

◆ Eof()

bool Retro::Rw11VirtStream::Eof ( ) const

FIXME_docs.

Definition at line 217 of file Rw11VirtStream.cpp.

References fFile.

Referenced by Retro::Rw11CntlPC11::UnitSetup().

◆ Dump()

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

FIXME_docs.

Reimplemented from Retro::Rw11Virt.

Definition at line 225 of file Rw11VirtStream.cpp.

References Retro::Rw11Virt::Dump(), fFile, fIStream, fOStream, and Retro::RosPrintf().

◆ New()

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

FIXME_docs.

Definition at line 247 of file Rw11VirtStream.cpp.

Member Data Documentation

◆ fIStream

bool Retro::Rw11VirtStream::fIStream
protected

is input (read only) stream

Definition at line 64 of file Rw11VirtStream.hpp.

Referenced by Dump(), Open(), and Read().

◆ fOStream

bool Retro::Rw11VirtStream::fOStream
protected

is output (write only) stream

Definition at line 65 of file Rw11VirtStream.hpp.

Referenced by Dump(), Flush(), Open(), and Write().

◆ fFile

FILE* Retro::Rw11VirtStream::fFile
protected

file ptr

Definition at line 66 of file Rw11VirtStream.hpp.

Referenced by Dump(), Eof(), Error(), Flush(), Open(), Read(), Seek(), Tell(), Write(), and ~Rw11VirtStream().


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