Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
AutoUTFOutputStream< CharType, OutputByteStream > Class Template Reference

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

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/common/arccore/common/internal/json/rapidjson/encodedstream.h>

Collaboration diagram for AutoUTFOutputStream< CharType, OutputByteStream >:

Public Types

typedef CharType Ch

Public Member Functions

 AutoUTFOutputStream (OutputByteStream &os, UTFType type, bool putBOM)
 Constructor.
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)
 AutoUTFOutputStream (const AutoUTFOutputStream &)
AutoUTFOutputStreamoperator= (const AutoUTFOutputStream &)
void PutBOM ()

Private Attributes

OutputByteStream * os_
UTFType type_
PutFunc putFunc_

Detailed Description

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

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

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

Definition at line 234 of file encodedstream.h.

Member Typedef Documentation

◆ Ch

template<typename CharType, typename OutputByteStream>
typedef CharType AutoUTFOutputStream< CharType, OutputByteStream >::Ch

Definition at line 237 of file encodedstream.h.

◆ PutFunc

template<typename CharType, typename OutputByteStream>
typedef void(* AutoUTFOutputStream< CharType, OutputByteStream >::PutFunc) (OutputByteStream &, Ch)
private

Definition at line 281 of file encodedstream.h.

Constructor & Destructor Documentation

◆ AutoUTFOutputStream()

template<typename CharType, typename OutputByteStream>
AutoUTFOutputStream< CharType, OutputByteStream >::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.

Definition at line 245 of file encodedstream.h.

References RAPIDJSON_ASSERT.

Member Function Documentation

◆ Flush()

template<typename CharType, typename OutputByteStream>
void AutoUTFOutputStream< CharType, OutputByteStream >::Flush ( )
inline

Definition at line 262 of file encodedstream.h.

◆ GetType()

template<typename CharType, typename OutputByteStream>
UTFType AutoUTFOutputStream< CharType, OutputByteStream >::GetType ( ) const
inline

Definition at line 259 of file encodedstream.h.

◆ Peek()

template<typename CharType, typename OutputByteStream>
Ch AutoUTFOutputStream< CharType, OutputByteStream >::Peek ( ) const
inline

Definition at line 265 of file encodedstream.h.

◆ Put()

template<typename CharType, typename OutputByteStream>
void AutoUTFOutputStream< CharType, OutputByteStream >::Put ( Ch c)
inline

Definition at line 261 of file encodedstream.h.

◆ PutBegin()

template<typename CharType, typename OutputByteStream>
Ch * AutoUTFOutputStream< CharType, OutputByteStream >::PutBegin ( )
inline

Definition at line 268 of file encodedstream.h.

◆ PutBOM()

template<typename CharType, typename OutputByteStream>
void AutoUTFOutputStream< CharType, OutputByteStream >::PutBOM ( )
inlineprivate

Definition at line 275 of file encodedstream.h.

◆ PutEnd()

template<typename CharType, typename OutputByteStream>
size_t AutoUTFOutputStream< CharType, OutputByteStream >::PutEnd ( Ch * )
inline

Definition at line 269 of file encodedstream.h.

◆ Take()

template<typename CharType, typename OutputByteStream>
Ch AutoUTFOutputStream< CharType, OutputByteStream >::Take ( )
inline

Definition at line 266 of file encodedstream.h.

◆ Tell()

template<typename CharType, typename OutputByteStream>
size_t AutoUTFOutputStream< CharType, OutputByteStream >::Tell ( ) const
inline

Definition at line 267 of file encodedstream.h.

Member Data Documentation

◆ os_

template<typename CharType, typename OutputByteStream>
OutputByteStream* AutoUTFOutputStream< CharType, OutputByteStream >::os_
private

Definition at line 283 of file encodedstream.h.

◆ putFunc_

template<typename CharType, typename OutputByteStream>
PutFunc AutoUTFOutputStream< CharType, OutputByteStream >::putFunc_
private

Definition at line 285 of file encodedstream.h.

◆ type_

template<typename CharType, typename OutputByteStream>
UTFType AutoUTFOutputStream< CharType, OutputByteStream >::type_
private

Definition at line 284 of file encodedstream.h.


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