Oncaphillis::Ligh++pd

niftyLib::IO Namespace Reference


Detailed Description

All classes functions typedefs we need for input/output operations within the niftyLib namespace.

niftyLib::IO mainly provides a couple of std::basic_streambuf sublclasses and "filters" io_filters and devices cooperating with the streambufs.


Data Structures

struct  streambuf_debug_get
struct  streambuf_debug_put
struct  streambuf_debug_get< false >
struct  streambuf_debug_put< false >
class  basic_streambuf_policy
class  basic_streambuf
 A fundamental double buffer streambuf implementation which offers pur virtual read/write methods to be overwritten by sublasses. More...
struct  codecvt_streambuf_policy
class  codecvt_streambuf
 A generic approach towards a imbueable streambuf. More...
class  device
 Generic Output device from which one might to choose to derive a new device class. More...
class  device_streambuf_policy
 Beside the standard stuff inherited from basic_streambuf_policy we also deternmine if the CharT of the streambuf differs from the CharT for the associated device<CharT,TraitsT>. More...
class  device_streambuf_base
 base class for all specializations of device_streambuf. More...
class  device_streambuf
 device_streambuf to be connected with a device More...
class  device_streambuf< CharT, DeviceT, PolicyT, TraitsT, false >
 Specialization for device_streambuf whenever the CharT of the streambuf equals the CharT of the associated device. More...
class  device_streambuf< CharT, DeviceT, PolicyT, TraitsT, true >
 Partial specialisation if iCharT != xCharT. More...
class  basic_fd_device
 A IO-Device which is associated with a unix-style fd file. More...
class  filter
 Template class filter represents a device which pipes its output/input to/from another device (which of course might be another filter). More...
class  basic_log_filter
 Special purpose device nifty for outputting strings into a log file or syslog facility. More...
class  str_log_filter
 A basic_log_filter subclass which dumps out a given string at the beginning of every detected newline-sequence. More...
class  basic_log_intro
 A I/O manipulator setting the current str_log_filter::log_intro of an associated std::basic_ostream<CharT>. More...
class  streambuf_device
 A device<CharT,TraitsT> subclass which may be plugged onto a basic_streambuf<Chart,TraitsT>. More...
class  syslog_device
 Output device for the syslog facility found on many UNIX systems. More...
class  time_log_filter
 A subclass of basic_log_filter which dumps a time-stamp of the current time whenever the streambuf hits a line-feed. More...
struct  err
 A conditional stderr stream reference. More...

Typedefs

typedef basic_fd_device< char > fd_device
typedef basic_fd_device< wchar_t > wfd_device
typedef basic_log_intro< char > log_intro
 Convenient typedef for basic_log_intro to work on a std::basic_ostream<char>.
typedef basic_log_intro< wchar_t > wlog_intro
 Convenient typedef for basic_log_intro to work on a std::basic_ostream<wchar_t>.
typedef std::streamsize streamsize
typedef iexception_t
< niftyLib::Exception
Exception
 This is the kind of Exception the niftyLib::IO system throws.

Functions

template<>
std::basic_ostream< char > & operator<< (std::basic_ostream< char > &os, const std::codecvt_base::result &r)
template<>
std::basic_ostream< wchar_t > & operator<< (std::basic_ostream< wchar_t > &os, const std::codecvt_base::result &r)
template<class CharT>
std::basic_ostream< CharT > & operator<< (std::basic_ostream< CharT > &os, const std::codecvt_base::result &r)
template<class CharT>
std::basic_ostream< CharT > & operator<< (std::basic_ostream< CharT > &os, const basic_log_intro< CharT > &l)
 Output shift operator makes basic_log_intro behave like a "ostream manipulator".

Variables

static Exception::ostream errorStream
static const char CR = 0x0d
 Hard encoding of the Carriage Return character.
static const char LF = 0x0a
 Hard encoding of the Carriage Return character.
static const char *const CRLF = "\x0d\x0a"
 CR,LF sequence the official end of line sequence for a mime stream.


Typedef Documentation

This is the kind of Exception the niftyLib::IO system throws.

Convenient typedef for basic_log_intro to work on a std::basic_ostream<char>.

typedef std::streamsize niftyLib::IO::streamsize

Convenient typedef for basic_log_intro to work on a std::basic_ostream<wchar_t>.


Function Documentation

template<class CharT>
std::basic_ostream<CharT>& niftyLib::IO::operator<< ( std::basic_ostream< CharT > &  os,
const basic_log_intro< CharT > &  l 
) [inline]

Output shift operator makes basic_log_intro behave like a "ostream manipulator".

See also:
log_intro::operator()(std::basic_ostream<CharT> & )

template<class CharT>
std::basic_ostream<CharT>& niftyLib::IO::operator<< ( std::basic_ostream< CharT > &  os,
const std::codecvt_base::result &  r 
) [inline]

template<>
std::basic_ostream<wchar_t>& niftyLib::IO::operator<< ( std::basic_ostream< wchar_t > &  os,
const std::codecvt_base::result &  r 
) [inline]

template<>
std::basic_ostream<char>& niftyLib::IO::operator<< ( std::basic_ostream< char > &  os,
const std::codecvt_base::result &  r 
) [inline]


Variable Documentation

const char niftyLib::IO::CR = 0x0d [static]

const char* const niftyLib::IO::CRLF = "\x0d\x0a" [static]

CR,LF sequence the official end of line sequence for a mime stream.

See also:
CR, LF

Referenced by multiform_filter< CharT, TraitsT >::read().

const char niftyLib::IO::LF = 0x0a [static]


Generated by  doxygen
© 2008; Dr. Sebastian Kloska ( Oncaphillis )
Powered by: [?]