eq::net::DataIStream Class Reference

#include <dataIStream.h>

Inheritance diagram for eq::net::DataIStream:

[legend]

List of all members.


Detailed Description

A std::istream-like input data stream for binary data.

Derived classes send the data using command packets.

Definition at line 23 of file dataIStream.h.


Basic data input

template<typename T>
DataIStreamoperator>> (T &value)
 Read a POD data item.
template<typename T>
DataIStreamoperator>> (std::vector< T > &value)
 Read a std::vector of POD data items.
void read (void *data, uint64_t size)
 Read a number of bytes into a buffer.
const void * getRemainingBuffer ()
 Get the pointer to the data remaining in the current buffer.
uint64_t getRemainingBufferSize ()
 Get the size of the data remaining in the current buffer.
void advanceBuffer (const uint64_t offset)
 Advance the current buffer by a number of bytes.
virtual size_t nRemainingBuffers () const =0
 Get the number of remaining buffers.
virtual uint32_t getVersion () const
virtual void reset ()
virtual bool getNextBuffer (const uint8_t **buffer, uint64_t *size)=0

Public Member Functions

template<>
DataIStreamoperator>> (std::string &str)
template<>
DataIStreamoperator>> (NodeID &nodeID)

Member Function Documentation

template<typename T>
DataIStream& eq::net::DataIStream::operator>> ( T &  value  )  [inline]

Read a POD data item.

Definition at line 33 of file dataIStream.h.

template<typename T>
DataIStream& eq::net::DataIStream::operator>> ( std::vector< T > &  value  )  [inline]

Read a std::vector of POD data items.

Definition at line 38 of file dataIStream.h.

void eq::net::DataIStream::read ( void *  data,
uint64_t  size 
)

Read a number of bytes into a buffer.

Definition at line 36 of file dataIStream.cpp.

const void * eq::net::DataIStream::getRemainingBuffer (  ) 

Get the pointer to the data remaining in the current buffer.

Definition at line 56 of file dataIStream.cpp.

Referenced by eq::FrameData::applyInstanceData(), and eq::Frame::applyInstanceData().

Here is the caller graph for this function:

uint64_t eq::net::DataIStream::getRemainingBufferSize (  ) 

Get the size of the data remaining in the current buffer.

Definition at line 64 of file dataIStream.cpp.

Referenced by eq::net::FullSlaveCM::_unpackOneVersion(), eq::FrameData::applyInstanceData(), and eq::Frame::applyInstanceData().

Here is the caller graph for this function:

void eq::net::DataIStream::advanceBuffer ( const uint64_t  offset  ) 

Advance the current buffer by a number of bytes.

Definition at line 72 of file dataIStream.cpp.

Referenced by eq::FrameData::applyInstanceData(), and eq::Frame::applyInstanceData().

Here is the caller graph for this function:

virtual size_t eq::net::DataIStream::nRemainingBuffers (  )  const [pure virtual]

Get the number of remaining buffers.

Implemented in eq::net::ObjectDataIStream.

Referenced by eq::FrameData::applyInstanceData(), and eq::Frame::applyInstanceData().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Dec 6 12:01:51 2008 for Equalizer 0.6 by  1.5.5