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 "JLang/JObjectID.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 24 of file JByteArrayIO.cc.
33 JParser<> zap(
"Example program to test byte array I/O.");
39 catch(
const exception &error) {
40 FATAL(error.what() << endl);
46 string s1 =
"hello world";
51 for (
double x = 0.0; x < 10.5; x += 1.0) {
57 l1.push_back(
"hello");
58 l1.push_back(
"world");
68 out << i1 << x1 << s1 << v1 << l1 << m1 << o1;
70 DEBUG(
"Buffer size " << out.size() << endl);
72 JByteArrayReader
in(out.data(), out.size());
85 in >> i2 >> x2 >> s2 >> v2 >> l2 >> m2 >> o2;
Utility class to parse command line options.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
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
#define DEBUG(A)
Message macros.