cphot 0.1
A C++ tool for computing photometry from spectra.
BasicOStreamWrapper< StreamType > Class Template Reference

Wrapper of std::basic_ostream into RapidJSON's Stream concept. More...

#include <ostreamwrapper.h>

Public Types

typedef StreamType::char_type Ch
 

Public Member Functions

 BasicOStreamWrapper (StreamType &stream)
 
void Put (Ch c)
 
void Flush ()
 
char Peek () const
 
char Take ()
 
size_t Tell () const
 
char * PutBegin ()
 
size_t PutEnd (char *)
 

Detailed Description

template<typename StreamType>
class BasicOStreamWrapper< StreamType >

Wrapper of std::basic_ostream into RapidJSON's Stream concept.

The classes can be wrapped including but not limited to:

  • std::ostringstream
  • std::stringstream
  • std::wpstringstream
  • std::wstringstream
  • std::ifstream
  • std::fstream
  • std::wofstream
  • std::wfstream
Template Parameters
StreamTypeClass derived from std::basic_ostream.

Definition at line 45 of file ostreamwrapper.h.

Member Typedef Documentation

◆ Ch

template<typename StreamType >
typedef StreamType::char_type BasicOStreamWrapper< StreamType >::Ch

Definition at line 47 of file ostreamwrapper.h.

Constructor & Destructor Documentation

◆ BasicOStreamWrapper()

template<typename StreamType >
BasicOStreamWrapper< StreamType >::BasicOStreamWrapper ( StreamType &  stream)
inline

Definition at line 48 of file ostreamwrapper.h.

Member Function Documentation

◆ Flush()

template<typename StreamType >
void BasicOStreamWrapper< StreamType >::Flush ( )
inline

Definition at line 54 of file ostreamwrapper.h.

◆ Peek()

template<typename StreamType >
char BasicOStreamWrapper< StreamType >::Peek ( ) const
inline

Definition at line 59 of file ostreamwrapper.h.

◆ Put()

template<typename StreamType >
void BasicOStreamWrapper< StreamType >::Put ( Ch  c)
inline

Definition at line 50 of file ostreamwrapper.h.

◆ PutBegin()

template<typename StreamType >
char* BasicOStreamWrapper< StreamType >::PutBegin ( )
inline

Definition at line 62 of file ostreamwrapper.h.

◆ PutEnd()

template<typename StreamType >
size_t BasicOStreamWrapper< StreamType >::PutEnd ( char *  )
inline

Definition at line 63 of file ostreamwrapper.h.

◆ Take()

template<typename StreamType >
char BasicOStreamWrapper< StreamType >::Take ( )
inline

Definition at line 60 of file ostreamwrapper.h.

◆ Tell()

template<typename StreamType >
size_t BasicOStreamWrapper< StreamType >::Tell ( ) const
inline

Definition at line 61 of file ostreamwrapper.h.


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