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

Input byte stream wrapper with a 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 EncodedInputStream< Encoding, InputByteStream >:

Public Types

typedef Encoding::Ch Ch

Public Member Functions

 EncodedInputStream (InputByteStream &is)
Ch Peek () const
Ch Take ()
size_t Tell () const
void Put (Ch)
void Flush ()
Ch * PutBegin ()
size_t PutEnd (Ch *)

Private Member Functions

 RAPIDJSON_STATIC_ASSERT (sizeof(typename InputByteStream::Ch)==1)
 EncodedInputStream (const EncodedInputStream &)
EncodedInputStreamoperator= (const EncodedInputStream &)

Private Attributes

InputByteStream & is_
Ch current_

Detailed Description

template<typename Encoding, typename InputByteStream>
class EncodedInputStream< Encoding, InputByteStream >

Input byte stream wrapper with a statically bound encoding.

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

Definition at line 40 of file encodedstream.h.

Member Typedef Documentation

◆ Ch

template<typename Encoding, typename InputByteStream>
typedef Encoding::Ch EncodedInputStream< Encoding, InputByteStream >::Ch

Definition at line 43 of file encodedstream.h.

Constructor & Destructor Documentation

◆ EncodedInputStream()

template<typename Encoding, typename InputByteStream>
EncodedInputStream< Encoding, InputByteStream >::EncodedInputStream ( InputByteStream & is)
inline

Definition at line 45 of file encodedstream.h.

Member Function Documentation

◆ Flush()

template<typename Encoding, typename InputByteStream>
void EncodedInputStream< Encoding, InputByteStream >::Flush ( )
inline

Definition at line 55 of file encodedstream.h.

◆ Peek()

template<typename Encoding, typename InputByteStream>
Ch EncodedInputStream< Encoding, InputByteStream >::Peek ( ) const
inline

Definition at line 49 of file encodedstream.h.

◆ Put()

template<typename Encoding, typename InputByteStream>
void EncodedInputStream< Encoding, InputByteStream >::Put ( Ch )
inline

Definition at line 54 of file encodedstream.h.

◆ PutBegin()

template<typename Encoding, typename InputByteStream>
Ch * EncodedInputStream< Encoding, InputByteStream >::PutBegin ( )
inline

Definition at line 56 of file encodedstream.h.

◆ PutEnd()

template<typename Encoding, typename InputByteStream>
size_t EncodedInputStream< Encoding, InputByteStream >::PutEnd ( Ch * )
inline

Definition at line 57 of file encodedstream.h.

◆ Take()

template<typename Encoding, typename InputByteStream>
Ch EncodedInputStream< Encoding, InputByteStream >::Take ( )
inline

Definition at line 50 of file encodedstream.h.

◆ Tell()

template<typename Encoding, typename InputByteStream>
size_t EncodedInputStream< Encoding, InputByteStream >::Tell ( ) const
inline

Definition at line 51 of file encodedstream.h.

Member Data Documentation

◆ current_

template<typename Encoding, typename InputByteStream>
Ch EncodedInputStream< Encoding, InputByteStream >::current_
private

Definition at line 64 of file encodedstream.h.

◆ is_

template<typename Encoding, typename InputByteStream>
InputByteStream& EncodedInputStream< Encoding, InputByteStream >::is_
private

Definition at line 63 of file encodedstream.h.


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