Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
getShell.cc File Reference

Example program to print shell. More...

#include <iostream>
#include "JSystem/JSystemToolkit.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

Example program to print shell.

Author
mdejong

Definition in file getShell.cc.

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 13 of file getShell.cc.

14{
15 using namespace std;
16 using namespace JPP;
17
18 int debug;
19
20 try {
21
22 JParser<> zap("Example program to print shell.");
23
24 zap['d'] = make_field(debug) = 0;
25
26 zap(argc, argv);
27 }
28 catch(const exception &error) {
29 FATAL(error.what() << endl);
30 }
31
32 cout << getShell() << endl;
33}
#define FATAL(A)
Definition JMessage.hh:67
int debug
debug level
Definition JSirene.cc:72
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition JParser.hh:2142
Utility class to parse command line options.
Definition JParser.hh:1698
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
std::string getShell(JShell &shell)
Get shell name.