Example program to test JLANG::JConversion class.
More...
#include <iostream>
#include <iomanip>
#include "JLang/JConversion.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
#define | PRINT(OUT, U, V) |
| Print class parameters.
|
|
|
int | main (int argc, char **argv) |
|
Example program to test JLANG::JConversion class.
- Author
- mdejong
Definition in file JConversion.cc.
◆ PRINT
#define PRINT |
( |
| OUT, |
|
|
| U, |
|
|
| V ) |
Value:
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
Print class parameters.
- Parameters
-
OUT | output stream |
U | class |
V | class |
Definition at line 45 of file JConversion.cc.
◆ main()
int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 54 of file JConversion.cc.
55{
58
60
61 try {
62
63 JParser<> zap(
"Example program to test class inspection.");
64
66
67 zap(argc, argv);
68 }
69 catch(const exception &error) {
70 FATAL(error.what() << endl);
71 }
72
73 if (
debug >= debug_t) {
74
75 cout << setw(36) << left << "name";
76 cout << setw(12) << " same ";
77 cout << setw(12) << " derived";
78 cout << endl;
79
80 cout << setfill('.');
81
82 PRINT(cout, __A__, __A__);
83 PRINT(cout, __B__, __A__);
84 PRINT(cout, __A__, __B__);
85 PRINT(cout, __A__, __B__);
86 }
87
92}
#define PRINT(OUT, U, V)
Print class parameters.
#define ASSERT(A,...)
Assert macro.
#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).
Template class test for polymorphism.