rapidjson::AutoUTFOutputStream< CharType, OutputByteStream > Class Template Reference
Public Types |
Public Member Functions |
Private Types |
Private Member Functions |
Private Attributes |
List of all members
rapidjson::AutoUTFOutputStream< CharType, OutputByteStream > Class Template Reference
Output stream wrapper with dynamically bound encoding and automatic encoding detection. More...
#include <ThirdParty/rapidjson/include/rapidjson/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 *) |
Private Types | |
typedef void(* | PutFunc )(OutputByteStream &, Ch) |
Private Member Functions | |
RAPIDJSON_STATIC_ASSERT (sizeof(typename OutputByteStream::Ch)==1) | |
void | PutBOM () |
Private Attributes | |
OutputByteStream * | os_ |
UTFType | type_ |
PutFunc | putFunc_ |
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.
Constructor & Destructor Documentation
template<typename CharType , typename OutputByteStream >
|
inline |
Constructor.
- Parameters
-
os output stream to be wrapped. type UTF encoding type. putBOM Whether to write BOM at the beginning of the stream.
The documentation for this class was generated from the following file:
- Source/ThirdParty/rapidjson/include/rapidjson/encodedstream.h