Jpp
17.2.1-pre0
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
Jeep
JParser-string.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <iomanip>
3
#include <string>
4
5
#include "
Jeep/JParser.hh
"
6
#include "
Jeep/JMessage.hh
"
7
8
9
/**
10
* \file
11
*
12
* Example program to test JPARSER::JParser.
13
* \author mdejong
14
*/
15
int
main
(
int
argc,
char
**argv)
16
{
17
using namespace
std;
18
19
string
text
;
20
bool
a
, b,
c
;
21
int
debug
;
22
23
try
{
24
25
JParser<string>
zap(
"Example program to test command line parser."
);
26
27
zap[
"text"
] =
make_field
(
text
);
28
zap[
"a"
] =
make_field
(
a
);
29
zap[
"b"
] =
make_field
(b);
30
zap[
"c"
] =
make_field
(
c
);
31
zap[
"debug"
] =
make_field
(
debug
) = 3, 0, 1, 2;
32
33
zap(argc, argv);
34
}
35
catch
(
const
exception &error) {
36
FATAL
(error.what() << endl);
37
}
38
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1517
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
text
char text[TEXT_SIZE]
Definition:
elog.cc:72
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1993
JMessage.hh
General purpose messaging.
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
a
then JCalibrateToT a
Definition:
JTuneHV.sh:116
JParser.hh
Utility class to parse command line options.
c
$WORKDIR ev_configure_domsimulator txt echo process $DOM_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DOM_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
debug
int debug
debug level
Definition:
archive-put-Detectors.sh:95
Generated by
1.8.5