xml::xsilTableBegin Class Reference
[Output stream manipulators.]

#include <Xsil.hh>

Inheritance diagram for xml::xsilTableBegin:

xml::xsil_base

List of all members.

Public Member Functions

 xsilTableBegin (const char *name, const char *type=0, int level=1)
 Constructor with name, type and indent level.
std::ostream & write (std::ostream &os) const
 Write table object head.

Protected Attributes

const char * fType
 Object type pointer.


Detailed Description

Xsil table begin manipulator. This manipulator adds the start tag of a table object to an output stream. Example: {verbatim} os << xsilTableBegin ("Events", "gds") << endl; os << xsilComment ("GDS EVENTS") << endl; os << xsilTableColumn<double> ("Amplitude") << endl; os << xsilTableColumn<double> ("Noise") << endl; os << xsilTableColumn<int> ("Time") << endl; os << xsilTableColumn<int> ("TimeN") << endl; os << xsilTableDataBegin() << endl; for (int r = 0; r < rows; ++r) { os << xsilTableEntry<double> (event[r].fAmplitude) << xsilTableEntryDelimiter() << xsilTableEntry<double> (event[r].fNoise) << xsilTableEntryDelimiter() << xsilTableEntry<int> (event[r].fTime.GetS()) << xsilTableEntryDelimiter() << xsilTableEntry<int> (event[r].fTime.GetN()); if (r + 1 < rows) os << xsilTableEntryDelimiter(); os << endl; } os << xsilTableDataEnd() << endl; os << xsilTableEnd() << endl; {verbatim}

brief Xsil table begin 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:42 2009 for dmt by  doxygen 1.5.4