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.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 20 of file JObjectIterator.cc.
28 JParser<> zap(
"Example program to test object iteration.");
34 catch(
const exception &error) {
35 FATAL(error.what() << endl);
43 for (
int i = 1; i != 5; ++i) {
49 JStreamObjectIterator<JType_t>
in(buffer);
51 for (
int i = 1;
in.hasNext(); ++i) {
53 int value = *
in.next();
Utility class to parse command line options.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in