Torque2D Reference
Public Types | Public Member Functions | List of all members
AutoUTFOutputStream< CharType, OutputByteStream > Class Template Reference

Output stream wrapper with dynamically bound encoding and automatic encoding detection. More...

#include <encodedstream.h>

Public Types

typedef CharType Ch
 

Public Member Functions

 AutoUTFOutputStream (OutputByteStream &os, UTFType type, bool putBOM)
 Constructor. More...
 
UTFType GetType () const
 
void Put (Ch c)
 
void Flush ()
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 

Detailed Description

template<typename CharType, typename OutputByteStream>
class rapidjson::AutoUTFOutputStream< CharType, OutputByteStream >

Output stream wrapper with dynamically bound encoding and automatic encoding detection.

Template Parameters
CharTypeType of character for writing.
InputByteStreamtype of output byte stream to be wrapped.

Member Typedef Documentation

typedef CharType Ch

Constructor & Destructor Documentation

AutoUTFOutputStream ( OutputByteStream &  os,
UTFType  type,
bool  putBOM 
)
inline

Constructor.

Parameters
osoutput stream to be wrapped.
typeUTF encoding type.
putBOMWhether to write BOM at the beginning of the stream.

Member Function Documentation

void Flush ( )
inline
UTFType GetType ( ) const
inline
Ch Peek ( ) const
inline
void Put ( Ch  c)
inline
Ch* PutBegin ( )
inline
size_t PutEnd ( Ch )
inline
Ch Take ( )
inline
size_t Tell ( ) const
inline

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