24 static const std::string& WILDCARD =
".*";
25 static const char COMMENT =
'#';
41 const TString value(properties.
getString(i->first));
42 const TRegexp regexp(i->second);
44 if (!value.Contains(regexp)) {
59 inline size_t stripColor(std::istream& in)
61 static const char colorStart =
'\033';
62 static const char colorEnd =
'm';
66 while (in.peek() == (
int) colorStart) {
68 while (in.peek() != (
int) colorEnd) {
89int main(
int argc,
char **argv)
106 const string& keyExplainer =
MAKE_STRING(
"Summary information:" << endl << listOfKeys);
109 selections[*i] = WILDCARD;
110 properties[*i] = selections[*i];
113 JParser<> zap(
"Auxiliary program to print histogram comparison results.");
115 zap[
'f'] =
make_field(inputFile,
"Histogram comparison ASCII output file");
122 catch (
const exception &error) {
123 FATAL(error.what() << endl);
126 ifstream in(inputFile);
128 for (
string buffer;
getline(in, buffer); ) {
130 istringstream iss(buffer);
133 if (iss.peek() == (
int) COMMENT) {
141 print(cout, summary, keys.cbegin(), keys.cend(),
' ',
false);
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
I/O formatting auxiliaries.
#define MAKE_STRING(A)
Make string.
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
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.
std::string getString(const std::string &key) const
Get string value.
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)...