blocxx
|
DO NOT DERIVE FROM THIS CLASS, as the dtor has to call a virtual fct. More...
#include <IOIFCStreamBuffer.hpp>
Public Types | |
enum | EDirectionFlag |
Public Member Functions | |
IOIFCStreamBuffer (IOIFC *dev, int bufSize, const char *direction) BLOCXX_DEPRECATED | |
IOIFCStreamBuffer (IOIFC *dev, EDirectionFlag direction=E_IN_OUT, int bufSize=64 *1024) | |
void | setErrorAction (IOIFC::ErrorAction error_action) |
virtual | ~IOIFCStreamBuffer () |
virtual void | reset () |
std::streambuf * | tie (std::streambuf *tied_buf) |
Private Member Functions | |
IOIFCStreamBuffer (const IOIFCStreamBuffer &arg) | |
IOIFCStreamBuffer & | operator= (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 | |
IOIFC * | m_dev |
std::streambuf * | m_tied_buf |
IOIFC::ErrorAction | m_error_action |
DO NOT DERIVE FROM THIS CLASS, as the dtor has to call a virtual fct.
Definition at line 51 of file IOIFCStreamBuffer.hpp.
Definition at line 60 of file BaseStreamBuffer.hpp.
BLOCXX_NAMESPACE::IOIFCStreamBuffer::IOIFCStreamBuffer | ( | IOIFC * | dev, |
int | bufSize, | ||
const char * | direction | ||
) |
Definition at line 64 of file IOIFCStreamBuffer.cpp.
BLOCXX_NAMESPACE::IOIFCStreamBuffer::IOIFCStreamBuffer | ( | IOIFC * | dev, |
EDirectionFlag | direction = E_IN_OUT , |
||
int | bufSize = 64*1024 |
||
) |
Definition at line 73 of file IOIFCStreamBuffer.cpp.
BLOCXX_NAMESPACE::IOIFCStreamBuffer::~IOIFCStreamBuffer | ( | ) | [virtual] |
Definition at line 81 of file IOIFCStreamBuffer.cpp.
References BLOCXX_NAMESPACE::BaseStreamBuffer::sync().
BLOCXX_NAMESPACE::IOIFCStreamBuffer::IOIFCStreamBuffer | ( | const IOIFCStreamBuffer & | arg | ) | [private] |
int BLOCXX_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. |
IOException | on failure. |
Reimplemented from BLOCXX_NAMESPACE::BaseStreamBuffer.
Definition at line 106 of file IOIFCStreamBuffer.cpp.
References m_dev, m_error_action, m_tied_buf, 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".
c | A pointer to the start of the buffer |
n | the number of bytes to write |
Reimplemented from BLOCXX_NAMESPACE::BaseStreamBuffer.
Definition at line 116 of file IOIFCStreamBuffer.cpp.
References m_dev, m_error_action, and BLOCXX_NAMESPACE::IOIFC::write().
IOIFCStreamBuffer& BLOCXX_NAMESPACE::IOIFCStreamBuffer::operator= | ( | const IOIFCStreamBuffer & | arg | ) | [private] |
void BLOCXX_NAMESPACE::IOIFCStreamBuffer::reset | ( | ) | [virtual] |
Definition at line 133 of file IOIFCStreamBuffer.cpp.
References BLOCXX_NAMESPACE::BaseStreamBuffer::initBuffers().
Referenced by BLOCXX_NAMESPACE::SocketBaseImpl::connect().
void BLOCXX_NAMESPACE::IOIFCStreamBuffer::setErrorAction | ( | IOIFC::ErrorAction | error_action | ) |
Definition at line 99 of file IOIFCStreamBuffer.cpp.
References m_error_action.
std::streambuf * BLOCXX_NAMESPACE::IOIFCStreamBuffer::tie | ( | std::streambuf * | tied_buf | ) |
Definition at line 92 of file IOIFCStreamBuffer.cpp.
References m_tied_buf.
IOIFC* BLOCXX_NAMESPACE::IOIFCStreamBuffer::m_dev [private] |
Definition at line 68 of file IOIFCStreamBuffer.hpp.
Referenced by buffer_from_device(), and buffer_to_device().
Definition at line 70 of file IOIFCStreamBuffer.hpp.
Referenced by buffer_from_device(), buffer_to_device(), and setErrorAction().
std::streambuf* BLOCXX_NAMESPACE::IOIFCStreamBuffer::m_tied_buf [private] |
Definition at line 69 of file IOIFCStreamBuffer.hpp.
Referenced by buffer_from_device(), and tie().