15 int usage(
const std::string& command_name,
int exit_code);
20 int parse(
int argc,
char* argv[]);
29 int rc = arg.parse(argc, argv);
31 if (
rc != 0)
return rc;
33 std::string resultsName(arg.hresults);
35 if (!std::filesystem::exists(resultsName)) {
36 std::cerr <<
"File " << resultsName <<
" does not seem to exist. Exiting" << std::endl;
52 int usage(
const std::string& command_name,
int exit_code) {
55 message +=
"This program takes as an argument the name of a \'han\' results\n";
56 message +=
"file and prints the statuses of all assessments to stdout.\n";
58 std::string::size_type
s = command_name.size();
59 std::string::size_type
p = command_name.rfind(
'/', s);
60 std::string short_name = command_name.substr(p + 1, s);
63 std::cout <<
"Usage: " << short_name <<
" <results_file>\n";
68 int CmdLineArgs::parse(
int argc,
char* argv[]) {
70 if (argc > 2)
return usage(command, 1);
72 if (argc < 2)
return usage(command, 0);
int main(int, char **)
Main class for all the CppUnit test classes.
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
virtual void printAllDQAssessments()