BLOCXX_NAMESPACE::IOIFCStreamBuffer Class Reference

#include <IOIFCStreamBuffer.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::IOIFCStreamBuffer:

BLOCXX_NAMESPACE::BaseStreamBuffer BLOCXX_NAMESPACE::SocketStreamBuffer List of all members.

Public Member Functions

 IOIFCStreamBuffer (IOIFC *dev, int bufSize=BASE_BUF_SIZE, const char *direction="io")
virtual ~IOIFCStreamBuffer ()
virtual void reset ()

Private Member Functions

 IOIFCStreamBuffer (const IOIFCStreamBuffer &arg)
IOIFCStreamBufferoperator= (const IOIFCStreamBuffer &arg)
virtual int buffer_to_device (const char *c, int n)
 Writes the buffer to the "device".
virtual int buffer_from_device (char *c, int n)
 Fill the buffer from the "device".

Private Attributes

IOIFCm_dev

Detailed Description

Definition at line 47 of file IOIFCStreamBuffer.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::IOIFCStreamBuffer::IOIFCStreamBuffer IOIFC dev,
int  bufSize = BASE_BUF_SIZE,
const char *  direction = "io"
 

Definition at line 45 of file IOIFCStreamBuffer.cpp.

BLOCXX_NAMESPACE::IOIFCStreamBuffer::~IOIFCStreamBuffer  )  [virtual]
 

Definition at line 52 of file IOIFCStreamBuffer.cpp.

References BLOCXX_NAMESPACE::BaseStreamBuffer::sync().

BLOCXX_NAMESPACE::IOIFCStreamBuffer::IOIFCStreamBuffer const IOIFCStreamBuffer arg  )  [private]
 


Member Function Documentation

int BLOCXX_NAMESPACE::IOIFCStreamBuffer::buffer_from_device char *  c,
int  n
[private, virtual]
 

Fill the buffer from the "device".

Parameters:
c A pointer to the beginning of the buffer
n The number of bytes to be read into the buffer.
Returns:
-1 if no bytes are able to be read from the "device" (for instance, end of input stream). Otherwise, return the number of bytes read into the buffer.

Reimplemented from BLOCXX_NAMESPACE::BaseStreamBuffer.

Definition at line 58 of file IOIFCStreamBuffer.cpp.

References m_dev, and BLOCXX_NAMESPACE::IOIFC::read().

int BLOCXX_NAMESPACE::IOIFCStreamBuffer::buffer_to_device const char *  c,
int  n
[private, virtual]
 

Writes the buffer to the "device".

Parameters:
c A pointer to the start of the buffer
n the number of bytes to write
Returns:
-1 if error, 0 if the entire buffer was written.

Reimplemented from BLOCXX_NAMESPACE::BaseStreamBuffer.

Definition at line 64 of file IOIFCStreamBuffer.cpp.

References m_dev, and BLOCXX_NAMESPACE::IOIFC::write().

IOIFCStreamBuffer& BLOCXX_NAMESPACE::IOIFCStreamBuffer::operator= const IOIFCStreamBuffer arg  )  [private]
 

void BLOCXX_NAMESPACE::IOIFCStreamBuffer::reset  )  [virtual]
 

Definition at line 81 of file IOIFCStreamBuffer.cpp.

References BLOCXX_NAMESPACE::BaseStreamBuffer::initBuffers().

Referenced by BLOCXX_NAMESPACE::SocketBaseImpl::connect().


Member Data Documentation

IOIFC* BLOCXX_NAMESPACE::IOIFCStreamBuffer::m_dev [private]
 

Definition at line 60 of file IOIFCStreamBuffer.hpp.

Referenced by buffer_from_device(), and buffer_to_device().


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 15:39:11 2006 for blocxx by  doxygen 1.4.6