12 namespace GridConversion {
14 namespace ExampleProgram {
34 std::ostringstream Ostr;
35 Ostr <<
"Error: Could not open input file, '"
45 bool use_outfile =
false;
52 std::ostringstream Ostr;
53 Ostr <<
"Error: Unable to open output file, " <<
output_name <<
".";
65 while(std::getline(
Inf,line)){
67 Ouf << line << std::endl;
std::ifstream Inf
Infile stream for input.
std::ofstream Ouf
Outfile stream for output.
virtual int Run()
This function implements the main function executed by the program.
Example program interface.
std::string input_name
Name of input file.
std::string output_name
Name of file for output.