HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_StringStream Class Reference

An bi-directional stream object that owns its own string buffer storage. More...

#include <UT_StringStream.h>

+ Inheritance diagram for UT_StringStream:

Public Member Functions

 UT_StringStream (exint reserved_size=-1)
 
UT_StringStreamBufferrdbuf () const
 Returns the underlying stream buffer object. More...
 
const UT_WorkBufferstr ()
 Returns a read-only reference to the underlying UT_WorkBuffer. More...
 
void reset ()
 Resets the input stream and clears all existing input data. More...
 

Detailed Description

An bi-directional stream object that owns its own string buffer storage.

Definition at line 190 of file UT_StringStream.h.

Constructor & Destructor Documentation

UT_StringStream::UT_StringStream ( exint  reserved_size = -1)
inline

Start with an empty string buffer with a given size reservation, if it is known in advance how much data will be written out. The input stream will still be empty.

Definition at line 196 of file UT_StringStream.h.

Member Function Documentation

UT_StringStreamBuffer* UT_StringStream::rdbuf ( ) const
inline

Returns the underlying stream buffer object.

Definition at line 201 of file UT_StringStream.h.

void UT_StringStream::reset ( void  )
inline

Resets the input stream and clears all existing input data.

Definition at line 207 of file UT_StringStream.h.

const UT_WorkBuffer& UT_StringStream::str ( )
inline

Returns a read-only reference to the underlying UT_WorkBuffer.

Definition at line 204 of file UT_StringStream.h.


The documentation for this class was generated from the following file: