Example program to test JLANG::JObjectIterator class.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "JLang/JObjectIterator.hh"
#include "JLang/JStreamObjectIterator.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::JObjectIterator class.
- Author
- mdejong
Definition in file JObjectIterator.cc.
◆ main()
int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 20 of file JObjectIterator.cc.
21{
23
25
26 try {
27
28 JParser<> zap(
"Example program to test object iteration.");
29
31
32 zap(argc, argv);
33 }
34 catch(const exception &error) {
35 FATAL(error.what() << endl);
36 }
37
38
40
41 stringstream buffer;
42
43 for (int i = 1; i != 5; ++i) {
44 buffer << ' ' << i;
45 }
46
47 typedef int JType_t;
48
50
51 for (int i = 1; in.hasNext(); ++i) {
52
53 int value = *in.next();
54
56
58 }
59
60 return 0;
61}
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).