Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
EncodedOutputStream< Encoding, OutputByteStream > Class Template Reference

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

#include <encodedstream.h>

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
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 

Detailed Description

template<typename Encoding, typename OutputByteStream>
class EncodedOutputStream< Encoding, OutputByteStream >
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 100 of file encodedstream.h.

Member Typedef Documentation

◆ Ch

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

Definition at line 103 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 105 of file encodedstream.h.

105 : os_(os) {
106 if (putBOM)
107 Encoding::PutBOM(os_);
108 }
os_t os

Member Function Documentation

◆ Flush()

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

Definition at line 111 of file encodedstream.h.

111{ os_.Flush(); }
Here is the caller graph for this function:

◆ Peek()

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

Definition at line 114 of file encodedstream.h.

114{ RAPIDJSON_ASSERT(false); return 0;}
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition rapidjson.h:406

◆ Put()

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

Definition at line 110 of file encodedstream.h.

110{ Encoding::Put(os_, c); }

◆ PutBegin()

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

Definition at line 117 of file encodedstream.h.

117{ RAPIDJSON_ASSERT(false); return 0; }

◆ PutEnd()

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

Definition at line 118 of file encodedstream.h.

118{ RAPIDJSON_ASSERT(false); return 0; }

◆ Take()

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

Definition at line 115 of file encodedstream.h.

115{ RAPIDJSON_ASSERT(false); return 0;}

◆ Tell()

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

Definition at line 116 of file encodedstream.h.

116{ RAPIDJSON_ASSERT(false); return 0; }

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