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

#include <UT_StringStream.h>

+ Inheritance diagram for UT_StringRefStream:

Public Member Functions

 UT_StringRefStream (UT_WorkBuffer &buf, openmode m=in_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 data. More...
 

Detailed Description

An bi-directional 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 449 of file UT_StringStream.h.

Constructor & Destructor Documentation

UT_StringRefStream::UT_StringRefStream ( UT_WorkBuffer buf,
openmode  m = in_out 
)
inlineexplicit

Take a reference to an existing UT_WorkBuffer. The output position set to the end of the buffer, and the input position at the beginning of the buffer.

Definition at line 455 of file UT_StringStream.h.

Member Function Documentation

UT_StringRefStreamBuffer* UT_StringRefStream::rdbuf ( ) const
inline

Returns the underlying stream buffer object.

Definition at line 462 of file UT_StringStream.h.

void UT_StringRefStream::reset ( void  )
inline

Resets the input stream and clears all existing data.

Definition at line 468 of file UT_StringStream.h.

const UT_WorkBuffer& UT_StringRefStream::str ( ) const
inline

Returns a read-only reference to the underlying UT_WorkBuffer.

Definition at line 465 of file UT_StringStream.h.


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