xml::xsilBase64< T > Class Template Reference
[Utility operators and manipulators.]

#include <Xsil.hh>

List of all members.

Public Member Functions

 xsilBase64 (const T *data=0, int N=0)
 Constructor with data array and length.
std::ostream & write (std::ostream &os) const
 Write data array to output stream (base64 encoded).

Protected Attributes

const T * fData
 Data array pointer.
int fN
 Length of data array.


Detailed Description

template<class T>
class xml::xsilBase64< T >

Xsil data encoding manipulator. This manipulator adds the name of a data type to the output stream. Example: {verbatim} os << xsilIndent (fLevel+1) << xsilTagBegin (xmlArray) << xmlTypeAttr << xsilDataTypename<T>() << xmlAttrClosing << xmlTagClosing << std::endl; if (fDim1 > 0) { os << xsilIndent (fLevel+2) << xsilTagBegin (xmlDim) << xmlTagClosing << fDim1 << xsilTagEnd (xmlDim) << std::endl; } if (fDim2 > 0) { os << xsilIndent (fLevel+2) << xsilTagBegin (xmlDim) << xmlTagClosing << fDim2 << xsilTagEnd (xmlDim) << std::endl; } os << xsilIndent (fLevel+2) << xsilTagBegin (xmlStream) << xsilEncodingAttrAttr() << xmlTagClosing << std::endl; xsilBase64<T> (fData, fN).write (os); os << xsilIndent (fLevel+2) << xsilTagEnd (xmlStream) << std::endl; os << xsilIndent (fLevel+1) << xsilTagEnd (xmlArray) << std::endl; {verbatim} Typically used internally.

brief Xsil data encoding manipulator.

Author:
Written June 2000 by Daniel Sigg
Version:
1.0

The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:40 2009 for dmt by  doxygen 1.5.4