20 #pragma warning ( disable : 4786 )
21 #pragma warning ( disable : 4503 )
45 template<
class charT,
class traits =
char_traits<
charT> >
76 inline Self & operator[](
const char * cellname );
95 return this->SendToTargets( _arg );
100 return this->SendToTargets( pf );
105 return this->SendToTargets( pf );
110 return this->SendToTargets( pf );
113 virtual void WriteBufferedData(
void);
118 virtual int AddTargetCell(
const char * name, ostream_type * cell );
119 virtual int AddTargetCell(
const char * name, Self * cell );
121 virtual int RemoveTargetCell(
const char * name );
123 virtual void SetTargetCells(
const CStreamMapType & cellmap );
124 virtual void SetTargetCells(
const XStreamMapType & cellmap );
127 virtual int AddOutput(
const char * name, ostream_type * output );
128 virtual int AddOutput(
const char * name, Self * output );
129 virtual int RemoveOutput(
const char * name );
131 virtual void SetOutputs(
const CStreamMapType & outputmap );
132 virtual void SetOutputs(
const XStreamMapType & outputmap );
135 virtual const CStreamMapType & GetCOutputs(
void );
136 virtual const XStreamMapType & GetXOutputs(
void );
141 virtual Self & SelectXCell(
const char * name );
162 Send<T>::ToTargets( const_cast<T &>(_arg), m_CTargetCells, m_XTargetCells );
177 static void ToTargets( T & _arg, CStreamMapType & CTargetCells, XStreamMapType & XTargetCells )
180 for ( CStreamMapIteratorType cit = CTargetCells.begin();
181 cit != CTargetCells.end(); ++cit )
183 *(cit->second) << _arg;
187 for ( XStreamMapIteratorType xit = XTargetCells.begin();
188 xit != XTargetCells.end(); ++xit )
190 *(xit->second) << _arg;
205 #include "xoutbase.hxx"
207 #endif // end #ifndef __xoutbase_h
CStreamMapType m_COutputs
XStreamMapType::value_type XStreamMapEntryType
basic_ios< charT, traits > ios_type
virtual void Callback(void)
XStreamMapType m_XOutputs
CStreamMapType::value_type CStreamMapEntryType
basic_ostream< charT, traits > ostream_type
Self & operator<<(const T &_arg)
Self & SendToTargets(const T &_arg)
XStreamMapType m_XTargetCells
virtual int AddTargetCell(const char *)
Self & operator<<(ostream_type &(*pf)(ostream_type &))
traits::pos_type pos_type
XStreamMapType::iterator XStreamMapIteratorType
traits::int_type int_type
CStreamMapType m_CTargetCells
std::map< std::string, Self * > XStreamMapType
Self & operator<<(ios_base &(*pf)(ios_base &))
std::map< std::string, ostream_type * > CStreamMapType
traits::off_type off_type
Self & operator<<(ios_type &(*pf)(ios_type &))
CStreamMapType::iterator CStreamMapIteratorType