Jpp  debug
the software that should make you happy
Functions
getCookie.cc File Reference

Auxiliary program to print cookie file name. More...

#include <iostream>
#include <iomanip>
#include "JDB/JDB.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Auxiliary program to print cookie file name.

Author
mdejong

Definition in file getCookie.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 16 of file getCookie.cc.

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 }
#define FATAL(A)
Definition: JMessage.hh:67
int debug
debug level
Definition: JSirene.cc:69
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:2158
Utility class to parse command line options.
Definition: JParser.hh:1714
const char * getPrivateCookie()
Get private cookie.
Definition: JDB.hh:154
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JSTDTypes.hh:14