#include <MetaTable.hh>

Public Member Functions | |
| MetaTable (void) | |
| Empty table constructor. | |
| MetaTable (const char *Name, const char *Type=0) | |
| MetaTable (const MetaTable &x) | |
| virtual | ~MetaTable (void) |
| void | check (const char *title, int csize=0) const |
| void | clear (void) |
| void | defineColumn (const char *Name, const int *Addr) |
| void | defineColumn (const char *Name, const long *Addr) |
| void | defineColumn (const char *Name, const float *Addr) |
| void | defineColumn (const char *Name, const double *Addr) |
| void | defineColumn (const char *Name, const char *Addr, bool ilwc=false) |
| void | defineColumn (const char *Name, const std::string *Addr, bool ilwc=false) |
| void | defineColumn (const char *Name, const UCVec *Addr) |
| void | defineColumn (const char *Name, const MetaTable *Addr, const char *Col=0) |
| int | getNColumn (void) const |
| int | getNRow (void) const |
| void | putRow (void) |
| void | resetStream (void) |
| std::string | citeTable (const std::string &col) const |
| std::string | citeTable (const std::string &col, int row) const |
Classes | |
| class | eventcolumn |
| Data pointer class. | |
Specialization of xsil table class that incorporates automatic filling and reference capabilities. The user defines the MetaTable column structure by calling a defineColumn method for each data column. The second argument of defineColumn defines the data tyoe and the address of the mail-box variable that will contain the appropriate data each time a new row is added with via the putRow method.
| xsil::MetaTable::MetaTable | ( | void | ) |
Empty table constructor.
Construct an empty Meta-table.
| xsil::MetaTable::MetaTable | ( | const char * | Name, | |
| const char * | Type = 0 | |||
| ) |
Construct a Named Meta-table. brief Name meta-table constructor.
| xsil::MetaTable::MetaTable | ( | const MetaTable & | x | ) |
Construct a Named Meta-table. brief Name meta-table constructor.
| virtual xsil::MetaTable::~MetaTable | ( | void | ) | [virtual] |
Create an identical copy og the meta-table and return a pointer to the copy. brief Clone a Meta-table. Destroy a meta-table. brief Meta-table destructor.
| void xsil::MetaTable::check | ( | const char * | title, | |
| int | csize = 0 | |||
| ) | const |
Dump out the column data. brief Clear metatable.
| void xsil::MetaTable::defineColumn | ( | const char * | Name, | |
| const int * | Addr | |||
| ) |
| void xsil::MetaTable::defineColumn | ( | const char * | Name, | |
| const long * | Addr | |||
| ) |
| void xsil::MetaTable::defineColumn | ( | const char * | Name, | |
| const float * | Addr | |||
| ) |
| void xsil::MetaTable::defineColumn | ( | const char * | Name, | |
| const double * | Addr | |||
| ) |
| void xsil::MetaTable::defineColumn | ( | const char * | Name, | |
| const char * | Addr, | |||
| bool | ilwc = false | |||
| ) |
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. brief Add a column to the table.
| Name | Column name attribute field. | |
| Addr | Pointer to the data field. | |
| ilwc | Data type "ilwd:char" (true) or lstring (false). |
| void xsil::MetaTable::defineColumn | ( | const char * | Name, | |
| const std::string * | Addr, | |||
| bool | ilwc = false | |||
| ) |
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. brief Add a column to the table.
| Name | Column name attribute field. | |
| Addr | Pointer to the data field. | |
| ilwc | Data type "ilwd:char" (true) or lstring (false). |
| void xsil::MetaTable::defineColumn | ( | const char * | Name, | |
| const UCVec * | Addr | |||
| ) |
| void xsil::MetaTable::defineColumn | ( | const char * | Name, | |
| const MetaTable * | Addr, | |||
| const char * | Col = 0 | |||
| ) |
| int xsil::MetaTable::getNColumn | ( | void | ) | const [inline] |
Get the number of data columns that have already been defined. brief Get the number of columns.
| int xsil::MetaTable::getNRow | ( | void | ) | const [inline] |
Get the number of data rows that have already been defined. brief Get the number of rows.
| void xsil::MetaTable::putRow | ( | void | ) |
| void xsil::MetaTable::resetStream | ( | void | ) |
Delete the contens of the table data stream. brief Reset the data stream.
| std::string xsil::MetaTable::citeTable | ( | const std::string & | col | ) | const |
| std::string xsil::MetaTable::citeTable | ( | const std::string & | col, | |
| int | row | |||
| ) | const |
1.5.4