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

An output stream object that owns its own string buffer storage. More...

#include <UT_StringStream.h>

+ Inheritance diagram for UT_OStringStream:

Public Member Functions

 UT_OStringStream (exint reserved_size=-1)
 
int64 getMemoryUsage (bool inclusive) const
 
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 output stream object that owns its own string buffer storage.

Examples:
SOP/SOP_BlindData.C, standalone/standalone.C, and VOP/VOP_Switch.C.

Definition at line 159 of file UT_StringStream.h.

Constructor & Destructor Documentation

UT_OStringStream::UT_OStringStream ( 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.

Definition at line 164 of file UT_StringStream.h.

Member Function Documentation

int64 UT_OStringStream::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 168 of file UT_StringStream.h.

UT_StringStreamBuffer* UT_OStringStream::rdbuf ( ) const
inline

Returns the underlying stream buffer object.

Definition at line 177 of file UT_StringStream.h.

void UT_OStringStream::reset ( void  )
inline

Resets the input stream and clears all existing input data.

Definition at line 183 of file UT_StringStream.h.

const UT_WorkBuffer& UT_OStringStream::str ( )
inline

Returns a read-only reference to the underlying UT_WorkBuffer.

Examples:
SOP/SOP_BlindData.C, standalone/standalone.C, and VOP/VOP_Switch.C.

Definition at line 180 of file UT_StringStream.h.


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