Jpp
18.6.0-rc.1
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
JSupport
JMultipleFileScanner.cc
Go to the documentation of this file.
1
#include <string>
2
#include <iostream>
3
#include <iomanip>
4
5
#include "
JSupport/JMultipleFileScanner.hh
"
6
7
#include "
Jeep/JParser.hh
"
8
#include "
Jeep/JMessage.hh
"
9
10
11
/**
12
* \file
13
*
14
* Program to test parsing of JSUPPORT::JMultipleFileScanner.
15
* \author mdejong
16
*/
17
int
main
(
int
argc,
char
**argv)
18
{
19
using namespace
std;
20
using namespace
JPP;
21
22
JMultipleFileScanner<>
inputFile;
23
int
debug
;
24
25
try
{
26
27
JParser<>
zap(
"Program to test parsing of JSUPPORT::JMultipleFileScanner."
);
28
29
zap[
'f'
] =
make_field
(inputFile);
30
zap[
'd'
] =
make_field
(
debug
) = 2;
31
32
zap(argc, argv);
33
}
34
catch
(
const
exception& error) {
35
FATAL
(error.what() << endl);
36
}
37
38
cout << inputFile << endl;
39
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1711
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:2158
JMessage.hh
General purpose messaging.
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
JMultipleFileScanner.hh
Scanning of objects from multiple files according a format that follows from the extension of each fi...
JSUPPORT::JMultipleFileScanner<>
JParser.hh
Utility class to parse command line options.
debug
int debug
debug level
Definition:
archive-put-wiki-detectors.sh:92
Generated by
1.8.5