Example program to test JTOOLS::JTuple class.
More...
#include <iostream>
#include <sstream>
#include <iomanip>
#include "JTools/JTuple.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 JTOOLS::JTuple class.
- Author
- mdejong
Definition in file JTuple.cc.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 18 of file JTuple.cc.
19{
22
24
25 try {
26
28
30
32 }
33 catch(const exception &error) {
35 }
36
37
38 {
40
43
47
51
54 }
55
56 {
58
61
62 A.first = "aap";
63 A.second = 1234;
64
65 B.first = "noot";
66 B.second = -A.second;
67
69
73
74
76 }
77
78 {
79 ostringstream os;
80
82
84
85 ASSERT(os.str() ==
"1 aap 0.99",
"Test of JPP::make_tuple");
86 }
87
88 return 0;
89}
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
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).