CL_IODeviceProvider Class Reference
[clanCore I/O Data]

I/O device provider interface. More...

#include <iodevice_provider.h>

List of all members.

Public Member Functions

Construction

virtual ~CL_IODeviceProvider ()
Attributes

virtual int get_size () const
 Returns the size of data stream.
virtual int get_position () const
 Returns the position in the data stream.
Operations

virtual int send (const void *data, int len, bool send_all=true)=0
 Send data to device.
virtual int receive (void *data, int len, bool receive_all=true)=0
 Receive data from device.
virtual int peek (void *data, int len)=0
 Peek data from device.
virtual CL_IODeviceProviderduplicate ()=0
 Returns a new provider to the same resource.
virtual bool seek (int position, CL_IODevice::SeekMode mode)
 Seek in data stream.

Detailed Description

I/O device provider interface.


Constructor & Destructor Documentation

virtual CL_IODeviceProvider::~CL_IODeviceProvider (  )  [inline, virtual]

Member Function Documentation

virtual CL_IODeviceProvider* CL_IODeviceProvider::duplicate (  )  [pure virtual]

Returns a new provider to the same resource.

virtual int CL_IODeviceProvider::get_position (  )  const [inline, virtual]

Returns the position in the data stream.

Returns -1 if the position is unknown.

virtual int CL_IODeviceProvider::get_size (  )  const [inline, virtual]

Returns the size of data stream.

Returns -1 if the size is unknown.

virtual int CL_IODeviceProvider::peek ( void *  data,
int  len 
) [pure virtual]

Peek data from device.

virtual int CL_IODeviceProvider::receive ( void *  data,
int  len,
bool  receive_all = true 
) [pure virtual]

Receive data from device.

virtual bool CL_IODeviceProvider::seek ( int  position,
CL_IODevice::SeekMode  mode 
) [inline, virtual]

Seek in data stream.

virtual int CL_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: