Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
getTag.cc File Reference

Program to test JTagAvailable. More...

#include <string>
#include <iostream>
#include <iomanip>
#include "JLang/JType.hh"
#include "JLang/JBool.hh"
#include "JNet/JTag.hh"
#include "km3net-dataformat/online/JDAQEvent.hh"
#include "JDAQ/JDAQTags.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Program to test JTagAvailable.

Author
mdejong

Definition in file getTag.cc.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 68 of file getTag.cc.

69{
70 using namespace std;
71 using namespace JPP;
72
73 int debug;
74
75 try {
76
77 JParser<> zap("Program to test JTagAvailable.");
78
79 zap['d'] = make_field(debug) = 3;
80
81 zap(argc, argv);
82 }
83 catch(const exception& error) {
84 FATAL(error.what() << endl);
85 }
86
87 print(cout, JType<JDAQEvent>());
88 print(cout, JType<double>());
89
90 return 0;
91}
#define FATAL(A)
Definition JMessage.hh:67
int debug
debug level
Definition JSirene.cc:72
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition JParser.hh:2142
Utility class to parse command line options.
Definition JParser.hh:1698
std::ostream & print(std::ostream &out, const JTestSummary &summary, const char delimiter=' ', const bool useColors=true)
Print test summary.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for a type holder.
Definition JType.hh:19