23int main(
int argc,
char **argv)
46 JParser<> zap(
"General purpose program to print properties file.");
55 catch(
const exception &error) {
56 FATAL(error.what() << endl);
66 ifstream in(inputFile.c_str());
70 in.imbue(locale(in.getloc(), facet.
clone()));
72 for (
JEquation equation; in >> equation; ) {
74 DEBUG(equation << endl);
76 for (
const auto& i : key) {
78 if (equation.getKey().find(i) == 0) {
79 cout <<
' ' << equation.getValue();
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
Utility class to parse parameter values.
Utility class to parse parameter values.
Facet class to specify parsing of equations in currect locale (see class JLANG::JEquation).
virtual JEquationFacet * clone() const override
Clone this facet.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
const std::string & getSkipLine() const
Get skip line characters.
const std::string & getComment() const
Get comment string.
const std::string & getEndOfLine() const
Get end of line characters.
const std::string & getSeparator() const
Get separator characters.
char getLeftBracket() const
Get left bracket.
char getRightBracket() const
Get right bracket.
const std::string & getDivision() const
Get division characters.
const std::string & getWhiteSpace() const
Get white space characters.
General purpose equation class.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Empty structure for specification of parser element that is initialised (i.e. does not require input)...