cphot 0.1
A C++ tool for computing photometry from spectra.
EncodedInputStream< Encoding, InputByteStream > Class Template Reference

Input byte stream wrapper with a statically bound encoding. More...

#include <encodedstream.h>

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

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

Member Typedef Documentation

◆ Ch

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

Definition at line 42 of file encodedstream.h.

Constructor & Destructor Documentation

◆ EncodedInputStream()

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

Definition at line 44 of file encodedstream.h.

Member Function Documentation

◆ Flush()

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

Definition at line 54 of file encodedstream.h.

◆ Peek()

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

Definition at line 48 of file encodedstream.h.

◆ Put()

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

Definition at line 53 of file encodedstream.h.

◆ PutBegin()

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

Definition at line 55 of file encodedstream.h.

◆ PutEnd()

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

Definition at line 56 of file encodedstream.h.

◆ Take()

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

Definition at line 49 of file encodedstream.h.

◆ Tell()

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

Definition at line 50 of file encodedstream.h.


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