Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
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 Flush ()
 
Ch Peek () const
 
void Put (Ch c)
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 
Ch Take ()
 
size_t Tell () const
 

Private Member Functions

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

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 117 of file encodedstream.h.

Member Typedef Documentation

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

Definition at line 121 of file encodedstream.h.

Constructor & Destructor Documentation

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

Definition at line 123 of file encodedstream.h.

template<typename Encoding , typename OutputByteStream >
EncodedOutputStream< Encoding, OutputByteStream >::EncodedOutputStream ( const EncodedOutputStream< Encoding, OutputByteStream > &  )
private

Member Function Documentation

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

Definition at line 128 of file encodedstream.h.

template<typename Encoding , typename OutputByteStream >
EncodedOutputStream& EncodedOutputStream< Encoding, OutputByteStream >::operator= ( const EncodedOutputStream< Encoding, OutputByteStream > &  )
private
template<typename Encoding , typename OutputByteStream >
Ch EncodedOutputStream< Encoding, OutputByteStream >::Peek ( ) const
inline

Definition at line 131 of file encodedstream.h.

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

Definition at line 127 of file encodedstream.h.

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

Definition at line 143 of file encodedstream.h.

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

Definition at line 147 of file encodedstream.h.

template<typename Encoding , typename OutputByteStream >
EncodedOutputStream< Encoding, OutputByteStream >::RAPIDJSON_STATIC_ASSERT ( sizeof(typename OutputByteStream::Ch)  = =1)
private
template<typename Encoding , typename OutputByteStream >
Ch EncodedOutputStream< Encoding, OutputByteStream >::Take ( )
inline

Definition at line 135 of file encodedstream.h.

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

Definition at line 139 of file encodedstream.h.

Member Data Documentation

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

Definition at line 156 of file encodedstream.h.


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


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46