Jpp
examples
JTrigger
examples/JTrigger/JTriggerParameters.cc
Go to the documentation of this file.
1
2
#include <string>
3
#include <iostream>
4
#include <iomanip>
5
6
#include "
JTrigger/JTriggerParameters.hh
"
7
8
#include "
Jeep/JParser.hh
"
9
#include "
Jeep/JMessage.hh
"
10
11
12
/**
13
* \file
14
* Example program to read trigger parameters.
15
* \author mdejong
16
*/
17
int
main
(
int
argc,
char
**argv)
18
{
19
using namespace
std
;
20
using namespace
JPP
;
21
22
JTriggerParameters parameters;
23
int
debug
;
24
25
try
{
26
27
JParser<>
zap(
"Example program to read trigger parameters."
);
28
29
zap[
'@'
] =
make_field
(parameters) =
JPARSER::initialised
();
30
zap[
'd'
] =
make_field
(
debug
) = 0;
31
32
zap(argc, argv);
33
}
34
catch
(
const
exception &error) {
35
FATAL
(error.what() << endl);
36
}
37
38
cout << parameters << endl;
39
}
JTriggerParameters.hh
JMessage.hh
JPARSER::initialised
Empty structure for specification of parser element that is initialised (i.e.
Definition:
JParser.hh:63
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1493
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
debug
int debug
debug level
Definition:
JSirene.cc:59
main
int main(int argc, char **argv)
Definition:
examples/JTrigger/JTriggerParameters.cc:17
JParser.hh
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1954
std
Definition:
jaanetDictionary.h:36
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
Generated by
1.8.16