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

Output byte stream wrapper with statically bound encoding. More...

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

Collaboration diagram for EncodedOutputStream< Encoding, OutputByteStream >:

Public Types

typedef Encoding::Ch Ch

Public Member Functions

 EncodedOutputStream (OutputByteStream &os, bool putBOM=true)
void Put (Ch c)
void Flush ()
Ch Peek () const
Ch Take ()
size_t Tell () const
Ch * PutBegin ()
size_t PutEnd (Ch *)

Private Member Functions

 RAPIDJSON_STATIC_ASSERT (sizeof(typename OutputByteStream::Ch)==1)
 EncodedOutputStream (const EncodedOutputStream &)
EncodedOutputStreamoperator= (const EncodedOutputStream &)

Private Attributes

OutputByteStream & os_

Detailed Description

template<typename Encoding, typename OutputByteStream>
class EncodedOutputStream< Encoding, OutputByteStream >

Output byte stream wrapper with statically bound encoding.

Template Parameters
EncodingThe interpretation of encoding of the stream. Either UTF8, UTF16LE, UTF16BE, UTF32LE, UTF32BE.
OutputByteStreamType of input byte stream. For example, FileWriteStream.

Definition at line 101 of file encodedstream.h.

Member Typedef Documentation

◆ Ch

template<typename Encoding, typename OutputByteStream>
typedef Encoding::Ch EncodedOutputStream< Encoding, OutputByteStream >::Ch

Definition at line 104 of file encodedstream.h.

Constructor & Destructor Documentation

◆ EncodedOutputStream()

template<typename Encoding, typename OutputByteStream>
EncodedOutputStream< Encoding, OutputByteStream >::EncodedOutputStream ( OutputByteStream & os,
bool putBOM = true )
inline

Definition at line 106 of file encodedstream.h.

Member Function Documentation

◆ Flush()

template<typename Encoding, typename OutputByteStream>
void EncodedOutputStream< Encoding, OutputByteStream >::Flush ( )
inline

Definition at line 112 of file encodedstream.h.

◆ Peek()

template<typename Encoding, typename OutputByteStream>
Ch EncodedOutputStream< Encoding, OutputByteStream >::Peek ( ) const
inline

Definition at line 115 of file encodedstream.h.

◆ Put()

template<typename Encoding, typename OutputByteStream>
void EncodedOutputStream< Encoding, OutputByteStream >::Put ( Ch c)
inline

Definition at line 111 of file encodedstream.h.

◆ PutBegin()

template<typename Encoding, typename OutputByteStream>
Ch * EncodedOutputStream< Encoding, OutputByteStream >::PutBegin ( )
inline

Definition at line 118 of file encodedstream.h.

◆ PutEnd()

template<typename Encoding, typename OutputByteStream>
size_t EncodedOutputStream< Encoding, OutputByteStream >::PutEnd ( Ch * )
inline

Definition at line 119 of file encodedstream.h.

◆ Take()

template<typename Encoding, typename OutputByteStream>
Ch EncodedOutputStream< Encoding, OutputByteStream >::Take ( )
inline

Definition at line 116 of file encodedstream.h.

◆ Tell()

template<typename Encoding, typename OutputByteStream>
size_t EncodedOutputStream< Encoding, OutputByteStream >::Tell ( ) const
inline

Definition at line 117 of file encodedstream.h.

Member Data Documentation

◆ os_

template<typename Encoding, typename OutputByteStream>
OutputByteStream& EncodedOutputStream< Encoding, OutputByteStream >::os_
private

Definition at line 125 of file encodedstream.h.


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