blocxx
|
#include <StringStream.hpp>
Public Member Functions | |
OStringStreamBuf (size_t size) | |
virtual | ~OStringStreamBuf () |
String | toString () const |
String | releaseString () |
size_t | length () const |
const char * | c_str () const |
void | reset () |
![]() | |
BaseStreamBuffer (EDirectionFlag direction, size_t bufSize=BASE_BUF_SIZE) | |
Create a base stream buffer. | |
~BaseStreamBuffer () | |
Protected Member Functions | |
virtual int | buffer_to_device (const char *c, int n) |
Writes the buffer to the "device". | |
![]() | |
int | underflow () |
std::streamsize | xsputn (const char *s, std::streamsize n) |
virtual int | overflow (int c) |
virtual int | sync () |
virtual void | initBuffers () |
virtual void | initGetBuffer () |
virtual void | initPutBuffer () |
virtual int | buffer_from_device (char *c, int n) |
Fill the buffer from the "device". | |
Private Attributes | |
StringBuffer | m_buf |
Friends | |
class | OStringStream |
Additional Inherited Members | |
![]() | |
enum | EDirectionFlag { E_IN , E_OUT , E_IN_OUT } |
Definition at line 100 of file StringStream.hpp.
BLOCXX_NAMESPACE::OStringStreamBuf::OStringStreamBuf | ( | size_t | size | ) |
Definition at line 46 of file StringStream.cpp.
References BLOCXX_NAMESPACE::BaseStreamBuffer::BaseStreamBuffer(), BLOCXX_NAMESPACE::BaseStreamBuffer::E_OUT, and m_buf.
|
virtual |
Definition at line 51 of file StringStream.cpp.
|
protectedvirtual |
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 80 of file StringStream.cpp.
References m_buf.
const char * BLOCXX_NAMESPACE::OStringStreamBuf::c_str | ( | ) | const |
Definition at line 70 of file StringStream.cpp.
References m_buf.
size_t BLOCXX_NAMESPACE::OStringStreamBuf::length | ( | ) | const |
Definition at line 65 of file StringStream.cpp.
References m_buf.
String BLOCXX_NAMESPACE::OStringStreamBuf::releaseString | ( | ) |
Definition at line 60 of file StringStream.cpp.
References m_buf.
void BLOCXX_NAMESPACE::OStringStreamBuf::reset | ( | ) |
Definition at line 75 of file StringStream.cpp.
References m_buf.
String BLOCXX_NAMESPACE::OStringStreamBuf::toString | ( | ) | const |
Definition at line 55 of file StringStream.cpp.
References m_buf.
|
friend |
Definition at line 115 of file StringStream.hpp.
References OStringStream.
Referenced by OStringStream.
|
private |
Definition at line 114 of file StringStream.hpp.
Referenced by buffer_to_device(), c_str(), length(), OStringStreamBuf(), releaseString(), reset(), and toString().