ITextStream.h File Reference


Detailed Description

Abstract interface for a formatted text output stream, with C++ iostream-like operators.

#include <support/IInterface.h>
#include <sys/uio.h>

Go to the source code of this file.

Classes

class  ITextInput
 Abstract interface for streaming in formatted text. More...
class  ITextOutput
 Abstract interface for streaming out formatted text. More...
struct  ITextOutput::log_info
 Attributes that can be included in a LogV() call. More...
class  SCharCode
class  SDuration
 Time duration container for formatting to an ITextOutput. More...
class  SFloatDump
 Float container for formatting as raw bytes to an ITextOutput. More...
class  SHexDump
 Utility to perform hex data dump to an ITextOutput. More...
class  SPrintf
 Utility to perform printf()-like formatting to an ITextOutput. More...
class  SSize
 Bytes size_t container for formatting to an ITextOutput. More...
class  SStatus
class  STypeCode
 Type code container for formatting to an ITextOutput. More...

ITextOutput Formatters and Operators

typedef const sptr< ITextOutput > &(* ITextOutputManipFunc )(const sptr< ITextOutput > &)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
dedent (const sptr< ITextOutput > &io)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
endl (const sptr< ITextOutput > &io)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
indent (const sptr< ITextOutput > &io)
 Generic manipulator function for the output stream.
const sptr< ITextOutput > & operator<< (const sptr< ITextOutput > &io, const SCharCode &v)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const SFloatDump &buffer)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const SPrintf &data)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const SHexDump &buffer)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const SStatus &type)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const SSize &type)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const SDuration &type)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const STypeCode &type)
 Generic manipulator function for the output stream.
template<class TYPE>
const sptr< ITextOutput > & operator<< (const sptr< ITextOutput > &io, const wptr< TYPE > &a)
 Generic manipulator function for the output stream.
template<class TYPE>
const sptr< ITextOutput > & operator<< (const sptr< ITextOutput > &io, const sptr< TYPE > &a)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const void *)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, ITextOutputManipFunc func)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, double)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, float)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, int64_t)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, uint64_t)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, long)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, unsigned int)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, int)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, bool)
 Generic manipulator function for the output stream.
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, char)
 writes raw character
_IMPEXP_SUPPORT const sptr<
ITextOutput > & 
operator<< (const sptr< ITextOutput > &io, const char *str)
 Generic manipulator function for the output stream.


Typedef Documentation

typedef const sptr<ITextOutput>&(* ITextOutputManipFunc)(const sptr< ITextOutput > &)
 

Generic manipulator function for the output stream.


Function Documentation

_IMPEXP_SUPPORT const sptr<ITextOutput>& dedent const sptr< ITextOutput > &  io  ) 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& endl const sptr< ITextOutput > &  io  ) 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& indent const sptr< ITextOutput > &  io  ) 
 

Generic manipulator function for the output stream.

const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const SCharCode v
[inline]
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const SFloatDump buffer
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const SPrintf data
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const SHexDump buffer
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const SStatus type
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const SSize type
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const SDuration type
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const STypeCode type
 

Generic manipulator function for the output stream.

const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const wptr< TYPE > &  a
[inline]
 

Generic manipulator function for the output stream.

const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const sptr< TYPE > &  a
[inline]
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const void * 
 

Generic manipulator function for the output stream.

const sptr< ITextOutput > & operator<< const sptr< ITextOutput > &  io,
ITextOutputManipFunc  func
[inline]
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
double 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
float 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
int64_t 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
uint64_t 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
long 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
unsigned  int
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
int 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
bool 
 

Generic manipulator function for the output stream.

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
char 
 

writes raw character

_IMPEXP_SUPPORT const sptr<ITextOutput>& operator<< const sptr< ITextOutput > &  io,
const char *  str
 

Generic manipulator function for the output stream.