mesonet::MesonetData Class Reference

List of all members.

Detailed Description

Mesonet file header structure.

Author:
Jianting Zhang, Lulin Song
Version:
:
Id
MesonetData.h,v 1.4 2009/08/18 21:06:59 Kevin.Manross Exp


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 &)


Constructor & Destructor Documentation

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]


Member Function Documentation

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 (  ) 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const MesonetData  
) [friend]


Member Data Documentation

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.


Generated on Fri May 4 13:40:22 2012 for WDSS-IIw2algs by  doxygen 1.4.7