#include <MetaIO.hh>
Public Member Functions | |
| MetaIO (void) | |
| MetaIO (const char *file, const char *table=0) | |
| ~MetaIO (void) | |
| int | close (void) |
| const char * | getColumnName (int icol) const |
| Get a column name. | |
| double | getFloat (const char *cname, double def=0.0) const |
| long | getInt (const char *cname, long def=0) const |
| int | getNColumn (void) const |
| Number of columns. | |
| int | getRow (void) |
| std::string | getString (const char *cname, const char *def="") const |
| const char * | getTableName (void) const |
| const char * | getTypeName (int icol) const |
| bool | is_open (void) const |
| int | open (const char *file, const char *table=0) |
| xsil::MetaIO::MetaIO | ( | void | ) |
Construct a MetaIO reader.
| xsil::MetaIO::MetaIO | ( | const char * | file, | |
| const char * | table = 0 | |||
| ) |
Construct a ligo-lightweight table reader.
| xsil::MetaIO::~MetaIO | ( | void | ) |
Destroy a ligo-lightweight table reader.
| int xsil::MetaIO::close | ( | void | ) |
Close a Ligo-lightweight reader.
| const char* xsil::MetaIO::getColumnName | ( | int | icol | ) | const |
| double xsil::MetaIO::getFloat | ( | const char * | cname, | |
| double | def = 0.0 | |||
| ) | const |
| long xsil::MetaIO::getInt | ( | const char * | cname, | |
| long | def = 0 | |||
| ) | const |
| int xsil::MetaIO::getNColumn | ( | void | ) | const |
| int xsil::MetaIO::getRow | ( | void | ) |
Read the next row of the table from the opened file.
| std::string xsil::MetaIO::getString | ( | const char * | cname, | |
| const char * | def = "" | |||
| ) | const |
| const char* xsil::MetaIO::getTableName | ( | void | ) | const |
Get the table name from the header information.
| const char* xsil::MetaIO::getTypeName | ( | int | icol | ) | const |
Get the column type name.
| bool xsil::MetaIO::is_open | ( | void | ) | const [inline] |
Test whether the parse environment is ope. Returns true if the input file is attached and open.
| int xsil::MetaIO::open | ( | const char * | file, | |
| const char * | table = 0 | |||
| ) |
1.5.4