|
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. | |
| ~BaseStreamBuffer () | |
Protected Member Functions | |
| virtual int | buffer_to_device (const char *c, int n) |
| Writes the buffer to the "device". | |
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". | |
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 100 of file StringStream.hpp.
| BLOCXX_NAMESPACE::OStringStreamBuf::OStringStreamBuf | ( | size_t | size | ) |
Definition at line 46 of file StringStream.cpp.
|
virtual |
Definition at line 51 of file StringStream.cpp.
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 BLOCXX_NAMESPACE::StringBuffer::append(), m_buf, and BLOCXX_NAMESPACE::operator==().
Definition at line 70 of file StringStream.cpp.
References BLOCXX_NAMESPACE::StringBuffer::c_str(), and m_buf.
Referenced by BLOCXX_NAMESPACE::OStringStream::c_str().
| size_t BLOCXX_NAMESPACE::OStringStreamBuf::length | ( | ) | const |
Definition at line 65 of file StringStream.cpp.
References BLOCXX_NAMESPACE::StringBuffer::length(), and m_buf.
Referenced by BLOCXX_NAMESPACE::OStringStream::length().
| String BLOCXX_NAMESPACE::OStringStreamBuf::releaseString | ( | ) |
Definition at line 60 of file StringStream.cpp.
References m_buf, and BLOCXX_NAMESPACE::StringBuffer::releaseString().
Referenced by BLOCXX_NAMESPACE::OStringStream::releaseString().
| void BLOCXX_NAMESPACE::OStringStreamBuf::reset | ( | ) |
Definition at line 75 of file StringStream.cpp.
References m_buf, and BLOCXX_NAMESPACE::StringBuffer::reset().
Referenced by BLOCXX_NAMESPACE::OStringStream::reset().
| String BLOCXX_NAMESPACE::OStringStreamBuf::toString | ( | ) | const |
Definition at line 55 of file StringStream.cpp.
References m_buf, and BLOCXX_NAMESPACE::StringBuffer::toString().
Referenced by BLOCXX_NAMESPACE::OStringStream::toString().
|
friend |
Definition at line 115 of file StringStream.hpp.
|
private |
Definition at line 114 of file StringStream.hpp.
Referenced by buffer_to_device(), c_str(), length(), releaseString(), reset(), and toString().