Jpp
software
JDB
getCookie.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <iomanip>
3
4
#include "
JDB/JDB.hh
"
5
6
#include "
Jeep/JParser.hh
"
7
#include "
Jeep/JMessage.hh
"
8
9
10
/**
11
* \file
12
*
13
* Auxiliary program to print cookie file name.
14
* \author mdejong
15
*/
16
int
main
(
int
argc,
char
**argv)
17
{
18
using namespace
std
;
19
using namespace
JPP
;
20
21
int
debug
;
22
23
try
{
24
25
JParser<>
zap(
"Auxiliary program to print cookie file name."
);
26
27
zap[
'd'
] =
make_field
(
debug
) = 1;
28
29
zap(argc, argv);
30
}
31
catch
(
const
exception &error) {
32
FATAL
(error.what() << endl);
33
}
34
35
cout <<
getPrivateCookie
() << endl;
36
}
JMessage.hh
main
int main(int argc, char **argv)
Definition:
getCookie.cc:16
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
JDB.hh
debug
int debug
debug level
Definition:
JSirene.cc:59
JDATABASE::getPrivateCookie
const char * getPrivateCookie()
Get private cookie.
Definition:
JDB.hh:46
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