1 #ifndef __DIFF_DATA_FILES_H__ 8 #define __DIFF_DATA_FILES_H__ 26 std::ostringstream Ostr;
28 AddArgHelp(
"file1",
"First file to read in for comparison against file2.");
30 AddArgHelp(
"file2",
"Second file to read in for comparison against file1.");
32 AddHelp(
"help",
"Print out long version of help and exit.");
34 AddHelp(
"verblevel",
"Set the verbosity level. (default = 1)");
36 AddHelp(
"output",
"Set the output file to <filename>. (default = stdout)");
38 Ostr <<
"Set the numerical tolerance for comparing numbers to <tolerance>." 39 <<
"\n\t\t(The default for the tolerance is 1.0e-12.)" 40 <<
"\n\t\t(The default behavior without -t is to compare numbers as strings.)" 41 <<
"\n\t\t(This flag will automatically force the -b flag to be used.)";
42 AddHelp(
"tolerance",Ostr.str());
45 Ostr <<
"Only compare the numbers in the two files." 46 <<
"\n\t\t(This flag will automatically force the -t flag to be used.)";
49 AddHelp(
"blank",
"Ignore blank space between words (or numbers).");
51 Ostr <<
"Command-line interface for comparing data files.";
void Initialize()
virtual function for program specific Initialization.
Defines MPI-specific parallel global and program classes.
std::string _description
application description.
int DiffDataFiles(int argc, char *argv[])
Compare two data files within a given tolerance.
void AddOption(char s, const std::string &l, int=0)
User interface to describe simple option.
DDFComLine(const char *args[])
void AddArgument(const std::string &a, int reqd=0)
User interface to describe an application argument.
ComLineObject()
Default constructor.
ComLine object for test running utility.
void AddHelp(char s, const std::string &help)
Specify usage for an option.
void AddArgHelp(const std::string &a, const std::string &help)
Specify the usage info for application argument.