50 AttrTable *attr_table_ptr =
NULL ;
54 if( !csvObj->
open( filename ) )
56 string err = (string)
"Unable to open file " + filename ;
62 BESDEBUG(
"csv",
"File Loaded:" << endl << *csvObj << endl ) ;
64 vector<string> fieldList ;
68 vector<string>::iterator it = fieldList.begin() ;
69 vector<string>::iterator et = fieldList.end() ;
70 for( ; it != et; it++)
72 attr_table_ptr = das.get_table((
string(*it)).c_str());
76 das.add_table(
string(*it),
new AttrTable);
80 attr_table_ptr->append_attr(
"type", type, type ) ;
error thrown if the resource requested cannot be found
bool open(const string &filepath)
void csv_read_attributes(DAS &das, const string &filename)
string getFieldType(const string &fieldName)
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
void getFieldList(vector< string > &list)