Jpp 21.0.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
software/JPhysics/JPDFSupportkit.cc
Go to the documentation of this file.
1#include <string>
2#include <iostream>
3#include <iomanip>
4
5#include "JPhysics/Antares.hh"
6#include "JPhysics/KM3NeT.hh"
8
9#include "Jeep/JProperties.hh"
10#include "Jeep/JParser.hh"
11#include "Jeep/JMessage.hh"
12
13
14/**
15 * \file
16 *
17 * Program to print PDF support data.
18 * \author mdejong
19 */
20int main(int argc, char **argv)
21{
22 using namespace std;
23 using namespace JPP;
24
25 PDF::configuration_type configuration;
26 string key;
27 int debug;
28
29
30 JProperties properties = configuration.getProperties();
31
32 try {
33
34 JParser<> zap("Program to print PDF support data.");
35
36 zap['@'] = make_field(properties, PDF::help() << configuration) = JPARSER::initialised();
37 zap['k'] = make_field(key) = get_keys(properties);
38 zap['d'] = make_field(debug) = 0;
39
40 zap['k'] = JPARSER::not_initialised();
41
42 zap(argc, argv);
43 }
44 catch(const exception &error) {
45 FATAL(error.what() << endl);
46 }
47
48 properties[key]->write(cout) << endl;
49}
Properties of Antares PMT and deep-sea water.
General purpose messaging.
#define FATAL(A)
Definition JMessage.hh:67
int debug
debug level
Definition JSirene.cc:74
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition JParser.hh:2107
Utility class to parse parameter values.
Properties of KM3NeT PMT and deep-sea water.
Utility class to parse parameter values.
std::ostream & write(std::ostream &out) const
Write the current parameter values.
Utility class to parse command line options.
Definition JParser.hh:1664
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)...
Definition JParser.hh:66
Empty structure for specification of parser element that is not initialised (i.e. does require input)...
Definition JParser.hh:72
Auxiliary data structure for complete configuration.
JProperties getProperties()
Get properties.
Manipulator for help output.