![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <xoutbase.h>
Data Structures | |
class | Send |
Public Types | |
typedef charT | char_type |
typedef CStreamMapType::value_type | CStreamMapEntryType |
typedef CStreamMapType::iterator | CStreamMapIteratorType |
typedef std::map< std::string, ostream_type * > | CStreamMapType |
typedef traits::int_type | int_type |
typedef basic_ios< charT, traits > | ios_type |
typedef traits::off_type | off_type |
typedef basic_ostream< charT, traits > | ostream_type |
typedef traits::pos_type | pos_type |
typedef xoutbase | Self |
typedef traits | traits_type |
typedef XStreamMapType::value_type | XStreamMapEntryType |
typedef XStreamMapType::iterator | XStreamMapIteratorType |
typedef std::map< std::string, Self * > | XStreamMapType |
Public Member Functions | |
virtual int | AddOutput (const char *name, ostream_type *output) |
virtual int | AddOutput (const char *name, Self *output) |
virtual int | AddTargetCell (const char *name, ostream_type *cell) |
virtual int | AddTargetCell (const char *name, Self *cell) |
virtual int | AddTargetCell (const char *) |
virtual const CStreamMapType & | GetCOutputs (void) |
virtual const XStreamMapType & | GetXOutputs (void) |
template<class T > | |
Self & | operator<< (const T &_arg) |
Self & | operator<< (ostream_type &(*pf)(ostream_type &)) |
Self & | operator<< (ios_type &(*pf)(ios_type &)) |
Self & | operator<< (ios_base &(*pf)(ios_base &)) |
Self & | operator[] (const char *cellname) |
virtual int | RemoveOutput (const char *name) |
virtual int | RemoveTargetCell (const char *name) |
virtual void | SetOutputs (const CStreamMapType &outputmap) |
virtual void | SetOutputs (const XStreamMapType &outputmap) |
virtual void | SetTargetCells (const CStreamMapType &cellmap) |
virtual void | SetTargetCells (const XStreamMapType &cellmap) |
virtual void | WriteBufferedData (void) |
xoutbase () | |
virtual | ~xoutbase () |
Protected Member Functions | |
virtual void | Callback (void) |
virtual Self & | SelectXCell (const char *name) |
template<class T > | |
Self & | SendToTargets (const T &_arg) |
Protected Attributes | |
bool | m_Call |
CStreamMapType | m_COutputs |
CStreamMapType | m_CTargetCells |
XStreamMapType | m_XOutputs |
XStreamMapType | m_XTargetCells |
Base class for xout.
An abstract base class, which defines the interface for using xout.
Definition at line 46 of file xoutbase.h.
typedef charT xoutlibrary::xoutbase< charT, traits >::char_type |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 54 of file xoutbase.h.
typedef CStreamMapType::value_type xoutlibrary::xoutbase< charT, traits >::CStreamMapEntryType |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 65 of file xoutbase.h.
typedef CStreamMapType::iterator xoutlibrary::xoutbase< charT, traits >::CStreamMapIteratorType |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 63 of file xoutbase.h.
typedef std::map< std::string, ostream_type * > xoutlibrary::xoutbase< charT, traits >::CStreamMapType |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 61 of file xoutbase.h.
typedef traits::int_type xoutlibrary::xoutbase< charT, traits >::int_type |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 55 of file xoutbase.h.
typedef basic_ios<charT, traits> xoutlibrary::xoutbase< charT, traits >::ios_type |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 59 of file xoutbase.h.
typedef traits::off_type xoutlibrary::xoutbase< charT, traits >::off_type |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 57 of file xoutbase.h.
typedef basic_ostream<charT, traits> xoutlibrary::xoutbase< charT, traits >::ostream_type |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 58 of file xoutbase.h.
typedef traits::pos_type xoutlibrary::xoutbase< charT, traits >::pos_type |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 56 of file xoutbase.h.
typedef xoutbase xoutlibrary::xoutbase< charT, traits >::Self |
Typedef's.
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 51 of file xoutbase.h.
typedef traits xoutlibrary::xoutbase< charT, traits >::traits_type |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 53 of file xoutbase.h.
typedef XStreamMapType::value_type xoutlibrary::xoutbase< charT, traits >::XStreamMapEntryType |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 66 of file xoutbase.h.
typedef XStreamMapType::iterator xoutlibrary::xoutbase< charT, traits >::XStreamMapIteratorType |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 64 of file xoutbase.h.
typedef std::map< std::string, Self * > xoutlibrary::xoutbase< charT, traits >::XStreamMapType |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, xoutlibrary::xoutcell< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
Definition at line 62 of file xoutbase.h.
xoutlibrary::xoutbase< charT, traits >::xoutbase | ( | ) |
Constructors
virtual xoutlibrary::xoutbase< charT, traits >::~xoutbase | ( | ) | [virtual] |
Destructor
virtual int xoutlibrary::xoutbase< charT, traits >::AddOutput | ( | const char * | name, |
ostream_type * | output | ||
) | [virtual] |
Add/Remove an output stream (like cout, or an fstream, or an xout-object).
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
virtual int xoutlibrary::xoutbase< charT, traits >::AddOutput | ( | const char * | name, |
Self * | output | ||
) | [virtual] |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
virtual int xoutlibrary::xoutbase< charT, traits >::AddTargetCell | ( | const char * | name, |
ostream_type * | cell | ||
) | [virtual] |
Methods to Add and Remove target cells. They return 0 when successful.
virtual int xoutlibrary::xoutbase< charT, traits >::AddTargetCell | ( | const char * | name, |
Self * | cell | ||
) | [virtual] |
virtual int xoutlibrary::xoutbase< charT, traits >::AddTargetCell | ( | const char * | ) | [inline, virtual] |
Reimplemented in xoutlibrary::xoutrow< charT, traits >.
Definition at line 120 of file xoutbase.h.
virtual void xoutlibrary::xoutbase< charT, traits >::Callback | ( | void | ) | [inline, protected, virtual] |
Called each time << is used, but only when m_Call == true;
Definition at line 157 of file xoutbase.h.
virtual const CStreamMapType& xoutlibrary::xoutbase< charT, traits >::GetCOutputs | ( | void | ) | [virtual] |
Get the output maps.
Reimplemented in xoutlibrary::xoutsimple< charT, traits >.
virtual const XStreamMapType& xoutlibrary::xoutbase< charT, traits >::GetXOutputs | ( | void | ) | [virtual] |
Reimplemented in xoutlibrary::xoutsimple< charT, traits >.
Self& xoutlibrary::xoutbase< charT, traits >::operator<< | ( | const T & | _arg | ) | [inline] |
the << operator. A templated member function, and some overloads.
The overloads are required for manipulators, like std::endl. (these manipulators in fact are global template functions, and need to deduce their own template arguments) template < class T > Self & operator<<(T & _arg) { return this->SendToTargets(_arg); }
Definition at line 93 of file xoutbase.h.
Self& xoutlibrary::xoutbase< charT, traits >::operator<< | ( | ostream_type &(*)(ostream_type &) | pf | ) | [inline] |
Definition at line 98 of file xoutbase.h.
Self& xoutlibrary::xoutbase< charT, traits >::operator<< | ( | ios_type &(*)(ios_type &) | pf | ) | [inline] |
Definition at line 103 of file xoutbase.h.
Self& xoutlibrary::xoutbase< charT, traits >::operator<< | ( | ios_base &(*)(ios_base &) | pf | ) | [inline] |
Definition at line 108 of file xoutbase.h.
Self& xoutlibrary::xoutbase< charT, traits >::operator[] | ( | const char * | cellname | ) | [inline] |
The operator [] simply calls this->SelectXCell(cellname). It returns an x-cell
virtual int xoutlibrary::xoutbase< charT, traits >::RemoveOutput | ( | const char * | name | ) | [virtual] |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
virtual int xoutlibrary::xoutbase< charT, traits >::RemoveTargetCell | ( | const char * | name | ) | [virtual] |
Reimplemented in xoutlibrary::xoutrow< charT, traits >.
virtual Self& xoutlibrary::xoutbase< charT, traits >::SelectXCell | ( | const char * | name | ) | [protected, virtual] |
Returns a target cell.
Reimplemented in xoutlibrary::xoutrow< charT, traits >.
Self& xoutlibrary::xoutbase< charT, traits >::SendToTargets | ( | const T & | _arg | ) | [inline, protected] |
Definition at line 160 of file xoutbase.h.
virtual void xoutlibrary::xoutbase< charT, traits >::SetOutputs | ( | const CStreamMapType & | outputmap | ) | [virtual] |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
virtual void xoutlibrary::xoutbase< charT, traits >::SetOutputs | ( | const XStreamMapType & | outputmap | ) | [virtual] |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutsimple< charT, traits >.
virtual void xoutlibrary::xoutbase< charT, traits >::SetTargetCells | ( | const CStreamMapType & | cellmap | ) | [virtual] |
virtual void xoutlibrary::xoutbase< charT, traits >::SetTargetCells | ( | const XStreamMapType & | cellmap | ) | [virtual] |
Reimplemented in xoutlibrary::xoutrow< charT, traits >.
virtual void xoutlibrary::xoutbase< charT, traits >::WriteBufferedData | ( | void | ) | [virtual] |
Reimplemented in xoutlibrary::xoutrow< charT, traits >, and xoutlibrary::xoutcell< charT, traits >.
bool xoutlibrary::xoutbase< charT, traits >::m_Call [protected] |
Boolean that says whether the Callback-function must be called. False by default.
Definition at line 154 of file xoutbase.h.
CStreamMapType xoutlibrary::xoutbase< charT, traits >::m_COutputs [protected] |
Maps that contain the outputs.
Definition at line 144 of file xoutbase.h.
CStreamMapType xoutlibrary::xoutbase< charT, traits >::m_CTargetCells [protected] |
Maps that contain the target cells. The << operator passes its input to these maps.
Definition at line 149 of file xoutbase.h.
XStreamMapType xoutlibrary::xoutbase< charT, traits >::m_XOutputs [protected] |
Definition at line 145 of file xoutbase.h.
XStreamMapType xoutlibrary::xoutbase< charT, traits >::m_XTargetCells [protected] |
Definition at line 150 of file xoutbase.h.
Generated on 24-05-2012 for elastix by ![]() |
![]() |