#include <EventTable.hh>
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 |
Produce an XML document describing a trigger database table. Each row starts on a new output line in the XML document.
| xsil::EventTable::EventTable | ( | void | ) |
Default constructor.
Event table default constructor
| xsil::EventTable::EventTable | ( | const char * | Title | ) |
| xsil::EventTable::~EventTable | ( | void | ) |
Destructor.
Event table destructor
| void xsil::EventTable::makeTable | ( | const char * | Name, | |
| const char * | Type | |||
| ) |
| 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:
| Type | c-pointer |
| STRING | const char* |
| INT4 | const int* |
| REAL4 | const float* |
| REAL8 | const double* |
| Name | Column name attribute field. | |
| Type | Column data type. | |
| Addr | Pointer to the data field. |
| void xsil::EventTable::putEvent | ( | void | ) |
| 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.
| 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.
1.5.4