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) {
89 int 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);
Utility class to parse command line options.
int main(int argc, char *argv[])
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
JProperties & getProperties(T &object, const JEquationParameters ¶meters=JEquationParameters(), const int debug=1)
Get properties of a given object.
Utility class to parse parameter values.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
#define MAKE_STRING(A)
Make string.
JProperties getProperties(const JEquationParameters &equation=JTestSummary::getEquationParameters())
Get properties of this class.
I/O formatting auxiliaries.
std::string getString(const std::string &key) const
Get string value.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
General purpose messaging.
Utility class to parse command line options.
Class dedicated to standardize the title of the graphical objects produced by the JTest_t() derived c...
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Auxiliary data structure for return type of make methods.
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.