xsil::EventTable Class Reference
[Xsil document preparation]

Trigger database table document. More...

#include <EventTable.hh>

List of all members.

Public Member Functions

 EventTable (void)
 Default constructor.
 EventTable (const char *Title)
 Data constructor.
 ~EventTable (void)
 Destructor.
void makeTable (const char *Name, const char *Type)
void addColumn (const char *Name, const char *Type, const void *Addr=0)
void putEvent (void)
void putTable (std::ostream &out)
void resetStream (void)

Classes

struct  eventcolumn


Detailed Description

Trigger database table document.

Produce an XML document describing a trigger database table. Each row starts on a new output line in the XML document.

Author:
J. Zweizig
Version:
1.0; last modified February 12, 2002

Constructor & Destructor Documentation

xsil::EventTable::EventTable ( void   ) 

Default constructor.

Event table default constructor

xsil::EventTable::EventTable ( const char *  Title  ) 

Data constructor.

Event table data constructor

Parameters:
Title Title of the table

xsil::EventTable::~EventTable ( void   ) 

Destructor.

Event table destructor


Member Function Documentation

void xsil::EventTable::makeTable ( const char *  Name,
const char *  Type 
)

Set up the table internally. Specify the name and table type attributes. brief make a table.

void xsil::EventTable::addColumn ( const char *  Name,
const char *  Type,
const void *  Addr = 0 
)

Specify a table column. The column name and type are included. an address field specifies a static address from which the data will be copied. The following types are currently supported:
Typec-pointer
STRINGconst char*
INT4const int*
REAL4const float*
REAL8const double*
A '*' is added to the stream to indicate an invalid data type, and "00" is added to indicate a null pointer specified. brief Add a column to the table.

Parameters:
Name Column name attribute field.
Type Column data type.
Addr Pointer to the data field.

void xsil::EventTable::putEvent ( void   ) 

Copy all specified data fields (one for each table column) into the data stream. brief Copy an event into the data stream.

void xsil::EventTable::putTable ( std::ostream &  out  ) 

Write the XML document to the specified output stream. The table data stream is cleared after the data have been written. brief Write the XML document.

Parameters:
out Output stream to which the data will be written.

void xsil::EventTable::resetStream ( void   ) 

Delete the contens of the table data stream. brief Reset the data stream.


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