General purpose program to print properties file.
More...
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <vector>
#include <set>
#include <map>
#include "JLang/JEquationParameters.hh"
#include "JLang/JEquation.hh"
#include "Jeep/JProperties.hh"
#include "Jeep/JComment.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
General purpose program to print properties file.
- Author
- mdejong
Definition in file JPrintProperties.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 23 of file JPrintProperties.cc.
41 properties[
"left"] =
parameters.getLeftBracket();
42 properties[
"right"] =
parameters.getRightBracket();
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();
Utility class to parse command line options.
Utility class to parse parameter values.
*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)...
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
then fatal The output file must have the wildcard in the e g root fi 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.