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

#include <UT_StringStream.h>

+ Inheritance diagram for UT_OStringRefStream:

Public Member Functions

 UT_OStringRefStream (UT_WorkBuffer &buf, openmode m=ios_base::out)
 
UT_StringRefStreamBufferrdbuf () 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 output data. More...
 

Detailed Description

An output stream object that keeps a reference to an external string buffer storage. See UT_StringRefStreamBuffer for notes on modifying the external buffer while doing stream operations on it.

Definition at line 421 of file UT_StringStream.h.

Constructor & Destructor Documentation

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

Take a reference to an existing UT_WorkBuffer. The output position set to the end of the buffer.

Definition at line 426 of file UT_StringStream.h.

Member Function Documentation

UT_StringRefStreamBuffer* UT_OStringRefStream::rdbuf ( ) const
inline

Returns the underlying stream buffer object.

Definition at line 433 of file UT_StringStream.h.

void UT_OStringRefStream::reset ( void  )
inline

Resets the input stream and clears all existing output data.

Definition at line 439 of file UT_StringStream.h.

const UT_WorkBuffer& UT_OStringRefStream::str ( ) const
inline

Returns a read-only reference to the underlying UT_WorkBuffer.

Definition at line 436 of file UT_StringStream.h.


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