Example program to test JIO::JByteArrayReader and JIO::JByteArrayWriter.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include <map>
#include <list>
#include "JIO/JByteArrayIO.hh"
#include "JIO/JSTDIO.hh"
#include "Jeep/JStreamToolkit.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 JIO::JByteArrayReader and JIO::JByteArrayWriter.
- Author
- mdejong
Definition in file JByteArrayIO.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 23 of file JByteArrayIO.cc.
32 JParser<> zap(
"Example program to test byte array I/O.");
38 catch(
const exception &error) {
39 FATAL(error.what() << endl);
45 string s1 =
"hello world";
49 for (
double x = 0.0; x < 10.5; x += 1.0) {
55 l1.push_back(
"hello");
56 l1.push_back(
"world");
66 out << i1 << x1 << s1 << v1 << l1 << m1;
68 DEBUG(
"Buffer size " << out.size() << endl);
70 JByteArrayReader
in(out.data(), out.size());
82 in >> i2 >> x2 >> s2 >> v2 >> l2 >> m2;
Utility class to parse command line options.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define DEBUG(A)
Message macros.