Example program to test JLANG::JStatic class.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JLang/JStatic.hh"
#include "JTools/JQuantile.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 JLANG::JStatic class.
- Author
- mdejong
Definition in file JStatic.cc.
◆ main()
int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 36 of file JStatic.cc.
37{
40
42
43 try {
44
45 JParser<> zap(
"Example program to test static data member.");
46
48
49 zap(argc, argv);
50 }
51 catch(const exception &error) {
52 FATAL(error.what() << endl);
53 }
54
55 __A__::A = 888;
56 __A__::B = 0;
57 __A__::C = 100;
58 __A__::D = -11.11;
59 __A__::E = 1;
60 __A__::F = "hello world";
61
62 int i = __A__::A;
63
65
66 __A__::B++;
67 __A__::B += 2;
68
69 DEBUG(__A__::B << endl);
70 DEBUG(__A__::C << endl);
71 DEBUG(__A__::D << endl);
72 DEBUG(__A__::E << endl);
73 DEBUG(__A__::F << endl);
74
75 for (int i = 1; i != 10; ++i) {
76 __A__::Q->put(i);
77 }
78
80
81 {
83
85 }
86}
double getMean(vector< double > &v)
get mean of vector content
#define DEBUG(A)
Message macros.
#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).