23 int main(
int argc,
char **argv)
46 JParser<> zap(
"General purpose program to edit or create properties file.");
55 catch(
const exception &error) {
56 FATAL(error.what() << endl);
62 const JEquationFacet facet(parameters);
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();
Utility class to parse command line options.
const std::string & getEndOfLine() const
Get end of line characters.
int main(int argc, char *argv[])
Utility class to parse parameter values.
const std::string & getSeparator() const
Get separator characters.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Utility class to parse parameter values.
char getRightBracket() const
Get right bracket.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
char getLeftBracket() const
Get left bracket.
const std::string & getDivision() const
Get division characters.
const std::string & getComment() const
Get comment string.
General purpose messaging.
const std::string & getSkipLine() const
Get skip line characters.
Utility class to parse command line options.
const std::string & getWhiteSpace() const
Get white space characters.
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
#define DEBUG(A)
Message macros.