Jpp  17.2.1-pre0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JMultipleFileScanner.cc File Reference

Program to test parsing of JSUPPORT::JMultipleFileScanner. More...

#include <string>
#include <iostream>
#include <iomanip>
#include "JSupport/JMultipleFileScanner.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

Program to test parsing of JSUPPORT::JMultipleFileScanner.

Author
mdejong

Definition in file JMultipleFileScanner.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 17 of file JMultipleFileScanner.cc.

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 }
Utility class to parse command line options.
Definition: JParser.hh:1517
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1993
#define FATAL(A)
Definition: JMessage.hh:67
int debug
debug level