Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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
Ch * | PutBegin ()
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

  CharType | Type of character for writing.
  InputByteStream | type 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

  os | output stream to be wrapped.
  type | UTF encoding type.
  putBOM | Whether 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:

- persistence/rapidjson/include/rapidjson/encodedstream.h