![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <xoutbase.h>
Base class for xout.
An abstract base class, which defines the interface for using xout.
Definition at line 39 of file xoutbase.h.
Public Types | |
using | CStreamMapEntryType = CStreamMapType::value_type |
using | CStreamMapType = std::map< std::string, std::ostream * > |
using | Self = xoutbase |
using | XStreamMapEntryType = XStreamMapType::value_type |
using | XStreamMapType = std::map< std::string, Self * > |
Public Member Functions | |
virtual int | AddOutput (const char *name, Self *output) |
virtual int | AddOutput (const char *name, std::ostream *output) |
virtual int | AddTargetCell (const char *name, Self *cell) |
virtual int | AddTargetCell (const char *name, std::ostream *cell) |
virtual const CStreamMapType & | GetCOutputs () |
virtual const XStreamMapType & | GetXOutputs () |
template<class T > | |
Self & | operator<< (const T &_arg) |
Self & | operator<< (std::ios &(*pf)(std::ios &)) |
Self & | operator<< (std::ios_base &(*pf)(std::ios_base &)) |
Self & | operator<< (std::ostream &(*pf)(std::ostream &)) |
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 | WriteBufferedData () |
virtual | ~xoutbase ()=0 |
Protected Member Functions | |
void | SetCTargetCells (const CStreamMapType &cellmap) |
virtual void | SetXTargetCells (const XStreamMapType &cellmap) |
xoutbase ()=default | |
Protected Attributes | |
CStreamMapType | m_COutputs |
CStreamMapType | m_CTargetCells |
XStreamMapType | m_XOutputs |
XStreamMapType | m_XTargetCells |
Private Member Functions | |
template<class T > | |
Self & | SendToTargets (const T &_arg) |
using xoutlibrary::xoutbase::CStreamMapEntryType = CStreamMapType::value_type |
Definition at line 47 of file xoutbase.h.
using xoutlibrary::xoutbase::CStreamMapType = std::map<std::string, std::ostream *> |
Definition at line 45 of file xoutbase.h.
using xoutlibrary::xoutbase::Self = xoutbase |
Typedef's.
Definition at line 43 of file xoutbase.h.
using xoutlibrary::xoutbase::XStreamMapEntryType = XStreamMapType::value_type |
Definition at line 48 of file xoutbase.h.
using xoutlibrary::xoutbase::XStreamMapType = std::map<std::string, Self *> |
Definition at line 46 of file xoutbase.h.
|
pure virtual |
Destructor
|
protecteddefault |
Default-constructor. Only to be used by its derived classes.
Reimplemented in xoutlibrary::xoutrow, and xoutlibrary::xoutsimple.
|
virtual |
Add/Remove an output stream (like cout, or an fstream, or an xout-object).
Reimplemented in xoutlibrary::xoutrow, and xoutlibrary::xoutsimple.
|
virtual |
Methods to Add and Remove target cells. They return 0 when successful.
|
virtual |
Get the output maps.
Reimplemented in xoutlibrary::xoutsimple.
|
virtual |
Reimplemented in xoutlibrary::xoutsimple.
|
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 71 of file xoutbase.h.
|
inline |
Definition at line 85 of file xoutbase.h.
|
inline |
Definition at line 92 of file xoutbase.h.
|
inline |
Definition at line 78 of file xoutbase.h.
Self & xoutlibrary::xoutbase::operator[] | ( | const char * | cellname | ) |
The operator [] returns an x-cell
|
virtual |
Reimplemented in xoutlibrary::xoutrow, and xoutlibrary::xoutsimple.
|
virtual |
Reimplemented in xoutlibrary::xoutrow.
|
inlineprivate |
Definition at line 159 of file xoutbase.h.
|
protected |
|
virtual |
Reimplemented in xoutlibrary::xoutrow, and xoutlibrary::xoutsimple.
|
virtual |
Reimplemented in xoutlibrary::xoutrow, and xoutlibrary::xoutsimple.
|
protectedvirtual |
Reimplemented in xoutlibrary::xoutrow.
|
virtual |
Reimplemented in xoutlibrary::xoutcell, and xoutlibrary::xoutrow.
|
protected |
Maps that contain the outputs.
Definition at line 148 of file xoutbase.h.
|
protected |
Maps that contain the target cells. The << operator passes its input to these maps.
Definition at line 153 of file xoutbase.h.
|
protected |
Definition at line 149 of file xoutbase.h.
|
protected |
Definition at line 154 of file xoutbase.h.
Generated on Wed 12 Apr 2023
for elastix by ![]() |
![]() |