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 (openmode m=ios_base::out)
 Start with an empty string buffer. More...
 
 UT_OStringStream (exint reserved_size, openmode m=ios_base::out)
 
 UT_OStringStream (const UT_WorkBuffer &buf, openmode m=ios_base::out)
 
 UT_OStringStream (const char *buf, exint len=-1, openmode m=ios_base::out)
 
UT_StringStreamBufferrdbuf () const
 Returns the underlying stream buffer object. More...
 
const UT_WorkBufferstr () const
 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 250 of file UT_StringStream.h.

Constructor & Destructor Documentation

UT_OStringStream::UT_OStringStream ( openmode  m = ios_base::out)
inlineexplicit

Start with an empty string buffer.

Definition at line 254 of file UT_StringStream.h.

UT_OStringStream::UT_OStringStream ( exint  reserved_size,
openmode  m = ios_base::out 
)
inlineexplicit

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 261 of file UT_StringStream.h.

UT_OStringStream::UT_OStringStream ( const UT_WorkBuffer buf,
openmode  m = ios_base::out 
)
inlineexplicit

Populate the input stream with an existing UT_WorkBuffer. The contents of the buffer are copied into the internal storage and the output position set to the end of the buffer.

Definition at line 270 of file UT_StringStream.h.

UT_OStringStream::UT_OStringStream ( const char *  buf,
exint  len = -1,
openmode  m = ios_base::out 
)
inlineexplicit

Populate the input stream with an existing raw character buffer. The contents of the buffer are copied into the internal storage and the output position set to the end of the buffer.

Definition at line 279 of file UT_StringStream.h.

Member Function Documentation

UT_StringStreamBuffer* UT_OStringStream::rdbuf ( ) const
inline

Returns the underlying stream buffer object.

Definition at line 286 of file UT_StringStream.h.

void UT_OStringStream::reset ( void  )
inline

Resets the input stream and clears all existing input data.

Definition at line 292 of file UT_StringStream.h.

const UT_WorkBuffer& UT_OStringStream::str ( ) const
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 289 of file UT_StringStream.h.


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