omegalib  13.1
omicron::DataStream Class Referenceabstract

#include <DataManager.h>

Public Types

enum  Mode { Read, Write, ReadWrite }
 

Public Member Functions

 DataStream (const DataInfo &info)
 
virtual ~DataStream ()
 
const DataInfogetInfo ()
 
virtual bool isOpen ()
 
virtual int bytesAvailable ()
 
virtual bool isCFile ()
 
virtual FILE * getCFile ()
 
virtual void open (Mode mode)=0
 
virtual void close ()=0
 
virtual void read (void *data, uint64 size)=0
 
virtual void write (void *data, uint64 size)=0
 

Protected Attributes

DataInfo myInfo
 
+ Inheritance diagram for omicron::DataStream:

Member Enumeration Documentation

Enumerator
Read 
Write 
ReadWrite 

Constructor & Destructor Documentation

omicron::DataStream::DataStream ( const DataInfo info)
inline
virtual omicron::DataStream::~DataStream ( )
inlinevirtual

Member Function Documentation

virtual int omicron::DataStream::bytesAvailable ( )
inlinevirtual

Reimplemented in omicron::FileDataStream.

virtual void omicron::DataStream::close ( )
pure virtual

Implemented in omicron::FileDataStream.

virtual FILE* omicron::DataStream::getCFile ( )
inlinevirtual

Reimplemented in omicron::FileDataStream.

const DataInfo& omicron::DataStream::getInfo ( )
inline
virtual bool omicron::DataStream::isCFile ( )
inlinevirtual

Reimplemented in omicron::FileDataStream.

virtual bool omicron::DataStream::isOpen ( )
inlinevirtual

Reimplemented in omicron::FileDataStream.

virtual void omicron::DataStream::open ( Mode  mode)
pure virtual

Implemented in omicron::FileDataStream.

virtual void omicron::DataStream::read ( void *  data,
uint64  size 
)
pure virtual

Implemented in omicron::FileDataStream.

virtual void omicron::DataStream::write ( void *  data,
uint64  size 
)
pure virtual

Implemented in omicron::FileDataStream.

Member Data Documentation

DataInfo omicron::DataStream::myInfo
protected

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