Torque3D Documentation / _generateds / AutoUTFOutputStream

AutoUTFOutputStream

Engine/source/persistence/rapidjson/encodedstream.h

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

More...

Public Types

CharType
Ch 

Private Types

void(*
PutFunc )(OutputByteStream &, Ch)

Private Attributes

OutputByteStream *
PutFunc

Public Functions

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

Constructor.

Peek()
Put(Ch c)
size_t
PutEnd(Ch * )
Take()
size_t
Tell()

Detailed Description

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

Parameters:

CharType

Type of character for writing.

OutputByteStream

type of output byte stream to be wrapped.

Public Types

typedef CharType Ch 

Private Types

typedef void(* PutFunc )(OutputByteStream &, Ch)

Private Attributes

OutputByteStream * os_ 
PutFunc putFunc_ 
UTFType type_ 

Private Functions

AutoUTFOutputStream(const AutoUTFOutputStream & )

operator=(const AutoUTFOutputStream & )

PutBOM()

RAPIDJSON_STATIC_ASSERT(sizeof(typename OutputByteStream::Ch) )

Public Functions

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

Constructor.

Parameters:

os

output stream to be wrapped.

type

UTF encoding type.

putBOM

Whether to write BOM at the beginning of the stream.

Flush()

GetType()

Peek()

Put(Ch c)

PutBegin()

PutEnd(Ch * )

Take()

Tell()