Jpp
examples
JSystem
JLs.cc
Go to the documentation of this file.
1
2
#include <string>
3
#include <iostream>
4
#include <iomanip>
5
6
#include "
JSystem/JShell.hh
"
7
#include "
JSystem/JSystemToolkit.hh
"
8
#include "
Jeep/JParser.hh
"
9
#include "
Jeep/JMessage.hh
"
10
11
12
/**
13
* \file
14
* Example program to use JSYSTEM::ls.
15
* \author mdejong
16
*/
17
int
main
(
int
argc,
char
**argv)
18
{
19
using namespace
std
;
20
using namespace
JPP
;
21
22
int
debug
;
23
24
try
{
25
26
JParser<>
zap(
"Example program to test class inspection."
);
27
28
zap[
'd'
] =
make_field
(
debug
) = 0;
29
30
zap(argc, argv);
31
}
32
catch
(
const
exception &error) {
33
FATAL
(error.what() << endl);
34
}
35
36
string
option;
37
38
for
(
int
i = 1; i != argc; ++i) {
39
option +=
" "
;
40
option += argv[i];
41
}
42
43
ls buffer(option.c_str());
44
45
for
(ls::const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
46
cout << *i << endl;
47
}
48
}
JMessage.hh
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
debug
int debug
debug level
Definition:
JSirene.cc:59
JParser.hh
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1954
std
Definition:
jaanetDictionary.h:36
JShell.hh
main
int main(int argc, char **argv)
Definition:
JLs.cc:17
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
JSystemToolkit.hh
Generated by
1.8.16