Jpp
15.0.1-rc.1-highqe
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JSystem
getShell.cc
Go to the documentation of this file.
1
#include <iostream>
2
3
#include "
JSystem/JSystemToolkit.hh
"
4
#include "
Jeep/JParser.hh
"
5
#include "
Jeep/JMessage.hh
"
6
7
8
/**
9
* \file
10
* Example program to print shell.
11
* \author mdejong
12
*/
13
int
main
(
int
argc,
char
* argv[])
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
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1500
JSYSTEM::getShell
std::string getShell(JShell &shell)
Get shell name.
Definition:
JSystemToolkit.hh:207
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1961
debug
int debug
debug level
Definition:
JSirene.cc:63
JMessage.hh
General purpose messaging.
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
JParser.hh
Utility class to parse command line options.
JSystemToolkit.hh
System auxiliaries.
Generated by
1.8.5