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.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 24 of file JByteArrayIO.cc.
25{
28
30
31 try {
32
33 JParser<> zap(
"Example program to test byte array I/O.");
34
36
38 }
39 catch(const exception &error) {
41 }
42
43
45 double x1 = 123.456;
46 string s1 =
"hello world";
48
50
51 for (
double x = 0.0;
x < 10.5;
x += 1.0) {
53 }
54
56
57 l1.push_back(
"hello");
58 l1.push_back(
"world");
59
61
65
67
69
70 DEBUG(
"Buffer size " << out.size() <<
endl);
71
73
75 double x2 = 0.0;
78
80
82
84
86
94
95 return 0;
96}
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Byte array binary output.
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).