|
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 () |
Public Member Functions inherited from BLOCXX_NAMESPACE::BaseStreamBuffer | |
| BaseStreamBuffer (EDirectionFlag direction, size_t bufSize=BASE_BUF_SIZE) | |
| Create a base stream buffer. More... | |
| ~BaseStreamBuffer () | |
Protected Member Functions | |
| virtual int | buffer_to_device (const char *c, int n) |
| Writes the buffer to the "device". More... | |
Protected Member Functions inherited from BLOCXX_NAMESPACE::BaseStreamBuffer | |
| 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". More... | |
Private Attributes | |
| StringBuffer | m_buf |
Friends | |
| class | OStringStream |
Additional Inherited Members | |
Public Types inherited from BLOCXX_NAMESPACE::BaseStreamBuffer | |
| enum | EDirectionFlag { E_IN, E_OUT, E_IN_OUT } |
Definition at line 130 of file StringStream.hpp.
| BLOCXX_NAMESPACE::OStringStreamBuf::OStringStreamBuf | ( | size_t | size | ) |
Definition at line 76 of file StringStream.cpp.
References m_buf, and BLOCXX_NAMESPACE::StringBuffer::reset().
|
virtual |
Definition at line 81 of file StringStream.cpp.
References BLOCXX_NAMESPACE::StringBuffer::append(), and m_buf.
|
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 110 of file StringStream.cpp.
| const char * BLOCXX_NAMESPACE::OStringStreamBuf::c_str | ( | ) | const |
Definition at line 100 of file StringStream.cpp.
Referenced by BLOCXX_NAMESPACE::OStringStream::operator=().
| size_t BLOCXX_NAMESPACE::OStringStreamBuf::length | ( | ) | const |
Definition at line 95 of file StringStream.cpp.
| String BLOCXX_NAMESPACE::OStringStreamBuf::releaseString | ( | ) |
Definition at line 90 of file StringStream.cpp.
Referenced by BLOCXX_NAMESPACE::OStringStream::OStringStream().
| void BLOCXX_NAMESPACE::OStringStreamBuf::reset | ( | ) |
Definition at line 105 of file StringStream.cpp.
| String BLOCXX_NAMESPACE::OStringStreamBuf::toString | ( | ) | const |
Definition at line 85 of file StringStream.cpp.
|
friend |
Definition at line 145 of file StringStream.hpp.
|
private |
Definition at line 144 of file StringStream.hpp.
Referenced by OStringStreamBuf(), and ~OStringStreamBuf().
1.8.18