OW_NAMESPACE::IOIFCStreamBuffer Class Reference

#include <OW_IOIFCStreamBuffer.hpp>

Inheritance diagram for OW_NAMESPACE::IOIFCStreamBuffer:

Inheritance graph
Collaboration diagram for OW_NAMESPACE::IOIFCStreamBuffer:

Collaboration graph
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


Detailed Description

Definition at line 45 of file OW_IOIFCStreamBuffer.hpp.

Constructor & Destructor Documentation

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

Definition at line 43 of file OW_IOIFCStreamBuffer.cpp.

OW_NAMESPACE::IOIFCStreamBuffer::~IOIFCStreamBuffer  )  [virtual]

Definition at line 50 of file OW_IOIFCStreamBuffer.cpp.

References OW_NAMESPACE::BaseStreamBuffer::sync().

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

Member Function Documentation

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

Fill the buffer from the "device".

c A pointer to the beginning of the buffer
n The number of bytes to be read into the buffer.
-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 OW_NAMESPACE::BaseStreamBuffer.

Definition at line 56 of file OW_IOIFCStreamBuffer.cpp.

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

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

Writes the buffer to the "device".

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

Reimplemented from OW_NAMESPACE::BaseStreamBuffer.

Definition at line 62 of file OW_IOIFCStreamBuffer.cpp.

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

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

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

Definition at line 79 of file OW_IOIFCStreamBuffer.cpp.

References OW_NAMESPACE::BaseStreamBuffer::initBuffers().

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

Member Data Documentation

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

Definition at line 58 of file OW_IOIFCStreamBuffer.hpp.

Referenced by buffer_from_device(), and buffer_to_device().

The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:13:53 2006 for openwbem by  doxygen 1.4.6