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

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

#include <UT_StringStream.h>

+ Inheritance diagram for UT_IStringStream:

Public Member Functions

 UT_IStringStream (openmode m=ios_base::in)
 
 UT_IStringStream (const UT_WorkBuffer &buf, openmode m=ios_base::in)
 
 UT_IStringStream (const char *buf, exint len=-1, openmode m=ios_base::in)
 
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 input stream object that owns its own string buffer storage.

Examples:
SIM/SNOW_Solver.C.

Definition at line 197 of file UT_StringStream.h.

Constructor & Destructor Documentation

UT_IStringStream::UT_IStringStream ( openmode  m = ios_base::in)
inlineexplicit

Start with an empty string buffer. Use rdbuf()->swap() to swap in new data when required. Otherwise it will simply eof right from the start.

Definition at line 202 of file UT_StringStream.h.

UT_IStringStream::UT_IStringStream ( const UT_WorkBuffer buf,
openmode  m = ios_base::in 
)
inlineexplicit

Populate the input stream with an existing UT_WorkBuffer. The contents of the buffer are copied into the internal storage. The input position start at the beginning of the buffer.

Definition at line 210 of file UT_StringStream.h.

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

Populate the input stream with an existing raw character buffer. The contents of the buffer are copied into the internal storage. The input position start at the beginning of the buffer.

Definition at line 219 of file UT_StringStream.h.

Member Function Documentation

UT_StringStreamBuffer* UT_IStringStream::rdbuf ( ) const
inline

Returns the underlying stream buffer object.

Examples:
SIM/SNOW_Solver.C.

Definition at line 226 of file UT_StringStream.h.

void UT_IStringStream::reset ( void  )
inline

Resets the input stream and clears all existing input data.

Definition at line 232 of file UT_StringStream.h.

const UT_WorkBuffer& UT_IStringStream::str ( ) const
inline

Returns a read-only reference to the underlying UT_WorkBuffer.

Definition at line 229 of file UT_StringStream.h.


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