Public Member Functions | |
MesonetData (const std::string &inputdir, const std::string &metadataFileName) | |
construction function taking 2 parameters: input file path and observation data file name. | |
~MesonetData () | |
bool | isValid () |
code::SmartPtr< code::DataTable > | generateDataTable (const std::map< const std::string, StationInfo > &) |
generate data table , negative values means error | |
int | getColumnIdx (const std::string &colName) |
Static Public Member Functions | |
static void | getUnitMap () |
Public Attributes | |
std::vector< std::string > | columnNames |
Column names and observation data are matched to each other with index. | |
std::vector< std::vector< std::string > > | data |
Static Public Attributes | |
static std::map< std::string, std::string > | unitMap |
Map the column name to unit name. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const MesonetData &) |
mesonet::MesonetData::MesonetData | ( | const std::string & | inputdir, | |
const std::string & | metadataFileName | |||
) |
construction function taking 2 parameters: input file path and observation data file name.
mesonet::MesonetData::~MesonetData | ( | ) | [inline] |
code::SmartPtr<code::DataTable> mesonet::MesonetData::generateDataTable | ( | const std::map< const std::string, StationInfo > & | ) |
generate data table , negative values means error
int mesonet::MesonetData::getColumnIdx | ( | const std::string & | colName | ) |
static void mesonet::MesonetData::getUnitMap | ( | ) | [static] |
bool mesonet::MesonetData::isValid | ( | ) |
std::ostream& operator<< | ( | std::ostream & | , | |
const MesonetData & | ||||
) | [friend] |
std::vector< std::string > mesonet::MesonetData::columnNames |
Column names and observation data are matched to each other with index.
std::vector< std::vector<std::string> > mesonet::MesonetData::data |
std::map<std::string, std::string> mesonet::MesonetData::unitMap [static] |
Map the column name to unit name.