clan::IODeviceProvider Class Referenceabstract

I/O device provider interface. More...

#include <iodevice_provider.h>

Public Member Functions

virtual ~IODeviceProvider ()
 
virtual IODeviceProviderduplicate ()=0
 Returns a new provider to the same resource. More...
 
virtual int get_position () const
 Returns the position in the data stream. More...
 
virtual int get_size () const
 Returns the size of data stream. More...
 
virtual int peek (void *data, int len)=0
 Peek data from device. More...
 
virtual int receive (void *data, int len, bool receive_all=true)=0
 Receive data from device. More...
 
virtual bool seek (int, IODevice::SeekMode)
 Seek in data stream. More...
 
virtual int send (const void *data, int len, bool send_all=true)=0
 Send data to device. More...
 

Detailed Description

I/O device provider interface.

Constructor & Destructor Documentation

virtual clan::IODeviceProvider::~IODeviceProvider ( )
inlinevirtual

Member Function Documentation

virtual IODeviceProvider* clan::IODeviceProvider::duplicate ( )
pure virtual

Returns a new provider to the same resource.

virtual int clan::IODeviceProvider::get_position ( ) const
inlinevirtual

Returns the position in the data stream.

Returns -1 if the position is unknown.

virtual int clan::IODeviceProvider::get_size ( ) const
inlinevirtual

Returns the size of data stream.

Returns -1 if the size is unknown.

virtual int clan::IODeviceProvider::peek ( void *  data,
int  len 
)
pure virtual

Peek data from device.

virtual int clan::IODeviceProvider::receive ( void *  data,
int  len,
bool  receive_all = true 
)
pure virtual

Receive data from device.

virtual bool clan::IODeviceProvider::seek ( int  ,
IODevice::SeekMode   
)
inlinevirtual

Seek in data stream.

virtual int clan::IODeviceProvider::send ( const void *  data,
int  len,
bool  send_all = true 
)
pure virtual

Send data to device.


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