|
Crombie Tools
|
#include <ctime>#include <string.h>#include <assert.h>#include <stdio.h>#include <sys/stat.h>Go to the source code of this file.
Functions | |
| int | check_files_then_send (int argc, char **argv, int(*desired_main)(int, char **)) |
| This function checks that the input files exist, and that the output file does not exist. More... | |
| int | parse_then_send (int argc, char **argv, int(*desired_main)(int, char **)) |
| This function takes the argc and argv you get from a command line input, and checks for CMSSW-style inputFiles and outputFile parameters. More... | |
| void | print_usage (const char *first_arg) |
| int check_files_then_send | ( | int | argc, |
| char ** | argv, | ||
| int(*)(int, char **) | desired_main | ||
| ) |
This function checks that the input files exist, and that the output file does not exist.
A missing input file leads to exit code 2. An existing output file leads to exit code 3.
Definition at line 25 of file CmsswParse.h.
References print_usage().
Referenced by parse_then_send().
| int parse_then_send | ( | int | argc, |
| char ** | argv, | ||
| int(*)(int, char **) | desired_main | ||
| ) |
This function takes the argc and argv you get from a command line input, and checks for CMSSW-style inputFiles and outputFile parameters.
It only does this if argv[1] is a fake python file name (which cmsRun would usually use, for example).
After parsing and adjusting the input into something that actually matches the print_usage message above, this function calls the desired_main function.
Definition at line 66 of file CmsswParse.h.
References check_files_then_send(), and print_usage().
| void print_usage | ( | const char * | first_arg | ) |
Definition at line 10 of file CmsswParse.h.
Referenced by check_files_then_send(), and parse_then_send().