19 std::istream *Ins = &std::cin;
22 std::cout <<
"Usage:\n\n" 23 << argv[0] <<
" [name of test] <testing results file>" 27 std::string name_of_test(argv[1]);
28 std::string name_of_results_file(argv[2]);
32 std::cout <<
"Error: Could not open indicated results file, " 33 << argv[2] <<
"." << std::endl;
42 std::cout <<
"Searching for " << name_of_test <<
" in " 43 << name_of_results_file << std::endl;
45 while(std::getline(*Ins,line)){
47 std::string::size_type
x = line.find(
"=");
48 if(x != std::string::npos){
49 std::string testname(line.substr(0,x));
50 std::string testresult(line.substr(x+1));
52 if(testname == name_of_test){
54 std::cout <<
"Found " << name_of_test <<
", reading result from " 55 << testresult << std::endl;
56 std::istringstream Istr(testresult);
71 int main(
int argc,
char *argv[])
void Trim(std::string &instr, bool preserve_newline=false)
Creates space delimited tokens in place.
int TestResults(int argc, char *argv[])
Test results utility.
Defines MPI-specific parallel global and program classes.
void const size_t const size_t const size_t const double const double * x
Test results utility header.
int main(int argc, char *argv[])