Example program to test JTOOLS::JMultiKey class.
More...
#include <iostream>
#include <iomanip>
#include "JTools/JMultiKey.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
#define | PRINT(OUT, A, B, OP) |
|
|
int | main (int argc, char **argv) |
|
Example program to test JTOOLS::JMultiKey class.
- Author
- mdejong
Definition in file JMultiKey.cc.
◆ PRINT
#define PRINT |
( |
| OUT, |
|
|
| A, |
|
|
| B, |
|
|
| OP ) |
Value:do { OUT << A << ' ' << std::setw(2) << left << #OP << ' ' << B << " ?= " << (A OP B) << std::endl; } while (0)
Definition at line 11 of file JMultiKey.cc.
◆ main()
int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 20 of file JMultiKey.cc.
21{
24
26
27 try {
28
29 JParser<> zap(
"Example program to test multi-dimensional key.");
30
32
33 zap(argc, argv);
34 }
35 catch(const exception &error) {
36 FATAL(error.what() << endl);
37 }
38
39
40 {
41 const int N = 3;
42
44
46
49 a.second.second.first = 3;
50
51 b.first = 1;
52 b.second.first = 2;
53 b.second.second.first = 4;
54
55 PRINT(cout, a, b, ==);
57 PRINT(cout, a, b, <=);
59 PRINT(cout, a, b, >=);
60 }
61}
#define PRINT(OUT, A, B, OP)
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).