5 #ifndef RUN_STATS_TABLE_H 48 case 1: cerr <<
"WARNING: number of cells in one or more rows does not " 49 <<
"match the number of column headers when reading the \"" 51 case -1: cerr <<
"WARNING: could not read the table headers when reading the \"" 54 <<
"\" run stats file for read." << endl;
break;
56 <<
"\" run stats file for write." << endl;
break;
57 case -4: cerr <<
"WARNING: error when appending statistics to \"" <<
filename.
get_value()
58 <<
"\" run stats file for write." << endl;
break;
93 if (ret != -2)
return ret;
98 if (
stats.append_to(table) < 0) {
123 ifstream ifs(filename.c_str());
126 int ret=table.
read(ifs);
140 ofstream ofs(filename.c_str());
158 #endif // RUN_STATS_TABLE
clarg::argString filename
int write_to_file(const CSVStringTable &table, string filename)
int read_from_file(CSVStringTable &table, string filename)
void write(ostream &os) const
RunStatsTable(const char *arg, const char *desc)
Contains macros and functions to support execution statistics recording.
const T & get_value() const