Example program to test JLANG::JObjectReader class.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JLang/JObjectReader.hh"
#include "JLang/JASCIIFileReader.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
Example program to test JLANG::JObjectReader class.
- Author
- mdejong
Definition in file JObjectReader.cc.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 19 of file JObjectReader.cc.
20{
22
23 string inputFile;
25
26 try {
27
28 JParser<> zap(
"Example program to test object reading.");
29
32
33 zap(argc, argv);
34 }
35 catch(const exception &error) {
36 FATAL(error.what() << endl);
37 }
38
39
41
43
45
47
48 in.
open(inputFile.c_str());
49
52 }
53
55}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
virtual bool hasNext()=0
Check availability of next element.
virtual const pointer_type & next()=0
Get next element.
virtual void reset() override
Reset pointer.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
virtual void close() override
Close device.
virtual void open(const char *file_name) override
Open device.