90{
93
94 string inputFile;
95
98
100
101 try {
102
104
106 const string& keyExplainer =
MAKE_STRING(
"Summary information:" << endl << listOfKeys);
107
109 selections[*i] = WILDCARD;
110 properties[*i] = selections[*i];
111 }
112
113 JParser<> zap(
"Auxiliary program to print histogram comparison results.");
114
115 zap[
'f'] =
make_field(inputFile,
"Histogram comparison ASCII output file");
119
120 zap(argc, argv);
121 }
122 catch (const exception &error) {
123 FATAL(error.what() << endl);
124 }
125
126 ifstream in(inputFile);
127
128 for (
string buffer;
getline(in, buffer); ) {
129
130 istringstream iss(buffer);
131 stripColor(iss);
132
133 if (iss.peek() == (int) COMMENT) {
134 continue;
135 }
136
139
141 print(cout, summary, keys.cbegin(), keys.cend(),
' ',
false);
142 }
143 }
144
145 return 0;
146}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define MAKE_STRING(A)
Make string.
Class dedicated to standardize the title of the graphical objects produced by the JTest_t() derived c...
JProperties getProperties(const JEquationParameters &equation=JTestSummary::getEquationParameters())
Get properties of this class.
Utility class to parse parameter values.
Utility class to parse command line options.
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter=' ')
Read test summary.
std::ostream & print(std::ostream &out, const JTestSummary &summary, const char delimiter=' ', const bool useColors=true)
Print test summary.
JProperties & getProperties(T &object, const JEquationParameters ¶meters=JEquationParameters(), const int debug=1)
Get properties of a given object.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
const array_type< JKey_t > & get_keys(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &data)
Method to create array of keys of map.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for return type of make methods.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...