NANDRAD Data Model Library
Version 2.0
NANDRAD
|
A data member for a table with named columns.
Definition at line 32 of file NANDRAD_DataTable.h.
#include <NANDRAD_DataTable.h>
Public Member Functions | |
bool | operator!= (const DataTable &other) const |
Inequility operator. More... | |
void | setEncodedString (const std::string &str) |
Sets content of data table from encoded string. More... | |
std::string | encodedString () const |
Returns content of data table as encoded string using tab a value separator. More... | |
const std::vector< double > & | valueVector (const std::string ¶meterName) const |
Convenience function that looks up a parameter data vector in the map and returns a const reference to it. More... | |
Public Attributes | |
std::map< std::string, std::vector< double > > | m_values |
The actual data member. More... | |
|
inline |
Inequility operator.
Definition at line 36 of file NANDRAD_DataTable.h.
void NANDRAD::DataTable::setEncodedString | ( | const std::string & | str | ) |
Sets content of data table from encoded string.
Setting the following string "Col1:1 5 3;Col2:7 2 2" is equivalent to executing the following code:
Throws an IBK::Exception, if number of rows in columns mismatches.
std::string NANDRAD::DataTable::encodedString | ( | ) | const |
Returns content of data table as encoded string using tab a value separator.
const std::vector<double>& NANDRAD::DataTable::valueVector | ( | const std::string & | parameterName | ) | const |
Convenience function that looks up a parameter data vector in the map and returns a const reference to it.
Throws an IBK::Exception if the parameter name doesn't exist.
std::map<std::string, std::vector<double> > NANDRAD::DataTable::m_values |
The actual data member.
Definition at line 64 of file NANDRAD_DataTable.h.