Class defining a very simple parser of XML VOTable. More...
#include <votable.hpp>
Public Member Functions | |
VOTable () | |
Dummy Constructor. More... | |
VOTable (const std::string &input_filename) | |
Constructor. More... | |
void | from_content (const std::string &content) |
Constructor. More... | |
size_t | size () |
Size of the data table. More... | |
size_t | n_columns () |
number of fields More... | |
template<typename T > | |
VOField< T > | get (std::string field_name) |
Retrieve field data. More... | |
template<typename T > | |
VOField< T > | get (size_t field_index) |
Retrieve field data. More... | |
Public Attributes | |
std::map< std::string, Param > | params |
Table parameters. More... | |
std::vector< Field > | fields |
Table Fields. More... | |
Class defining a very simple parser of XML VOTable.
This class reads in the XML content assuming a single table was defined. It stores the descriptions into fields and params (attributes of the table) the get
methods allows one to rapidly access the data into a non-string type.
Definition at line 162 of file votable.hpp.
votable::VOTable::VOTable | ( | ) |
Dummy Constructor.
Definition at line 190 of file votable.hpp.
votable::VOTable::VOTable | ( | const std::string & | input_filename | ) |
void votable::VOTable::from_content | ( | const std::string & | content | ) |
Constructor.
content | XML file content to parse |
Definition at line 208 of file votable.hpp.
VOField< T > votable::VOTable::get | ( | size_t | field_index | ) |
Retrieve field data.
T | type to parse the data into |
field_index | index of the field |
Definition at line 352 of file votable.hpp.
VOField< T > votable::VOTable::get | ( | std::string | field_name | ) |
Retrieve field data.
T | type to parse the data into |
field_name | name of the field |
Definition at line 330 of file votable.hpp.
size_t votable::VOTable::n_columns | ( | ) |
size_t votable::VOTable::size | ( | ) |
Size of the data table.
Definition at line 309 of file votable.hpp.
std::vector<Field> votable::VOTable::fields |
Table Fields.
Definition at line 166 of file votable.hpp.
std::map<std::string, Param> votable::VOTable::params |
Table parameters.
Definition at line 165 of file votable.hpp.