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

#include <UT_NTStreamUtil.h>

+ Inheritance diagram for UT_OStrStream:

Public Member Functions

 UT_OStrStream ()
 
 UT_OStrStream (exint initialsize)
 
 UT_OStrStream (char *pch, exint nLength, std::ios::openmode=std::ios::out)
 
char * str ()
 
void freeze (bool isfrozen)
 
exint pcount () const
 
UT_OStrStreamBufrdbuf ()
 
virtual ~UT_OStrStream ()
 

Detailed Description

Our portable and much improved strstream Uses an exint buffer to allow greater than 2gb streams.

Definition at line 125 of file UT_NTStreamUtil.h.

Constructor & Destructor Documentation

UT_OStrStream::UT_OStrStream ( )
UT_OStrStream::UT_OStrStream ( exint  initialsize)
explicit
UT_OStrStream::UT_OStrStream ( char *  pch,
exint  nLength,
std::ios::openmode  = std::ios::out 
)

The stream does not gain ownership of this buffer! This means it will not resize if it overflows this buffer.

virtual UT_OStrStream::~UT_OStrStream ( )
inlinevirtual

Definition at line 159 of file UT_NTStreamUtil.h.

Member Function Documentation

void UT_OStrStream::freeze ( bool  isfrozen)
inline

Definition at line 149 of file UT_NTStreamUtil.h.

exint UT_OStrStream::pcount ( ) const
inline

Definition at line 151 of file UT_NTStreamUtil.h.

UT_OStrStreamBuf* UT_OStrStream::rdbuf ( )
inline

Definition at line 157 of file UT_NTStreamUtil.h.

char* UT_OStrStream::str ( )
inline

Note: This is old-school streams! You own the result of str() and must either free() it or invoke freeze(false)!

Definition at line 148 of file UT_NTStreamUtil.h.


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