Jpp
Functions
JPrintRootClass.cc File Reference
#include <string>
#include <iostream>
#include <iomanip>
#include "evt/Head.hh"
#include "evt/Evt.hh"
#include "JAAnet/JHead.hh"
#include "JDAQ/JDAQTimeslice.hh"
#include "JDAQ/JDAQEvent.hh"
#include "JDAQ/JDAQSummaryslice.hh"
#include "JTrigger/JTriggerParameters.hh"
#include "antares-dataformat/TimeSlice.hh"
#include "antares-dataformat/PhysicsEvent.hh"
#include "JSupport/JSupport.hh"
#include "JROOT/JRootClass.hh"
#include "JROOT/JROOTClassSelector.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

Auxiliary program to print class information.

The name of the data structure following option -C should be preceded by a '+' or '-' to add or remove data types in the output, respectively.
In this, ROOT wildcards are accepted (e.g.

-C -\.\*

will remove all data types).

Author
mdejong

Definition in file JPrintRootClass.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 82 of file JPrintRootClass.cc.

83 {
84  using namespace std;
85  using namespace JPP;
86 
88 
89  JPrinter_t printer(cout, getROOTClassSelection<typelist>());
90  int debug;
91 
92  try {
93 
94  JParser<> zap("Auxiliary program to print 'any' data.");
95 
96  zap['C'] = make_field(printer,
97  "Precede name of data structure by a '+' or '-' "
98  "to add or remove data types in the output, respectively."
99  "\nROOT wildcards are accepted.") = JPARSER::initialised();
100  zap['d'] = make_field(debug) = 1;
101 
102  zap(argc, argv);
103  }
104  catch(const exception& error) {
105  FATAL(error.what() << endl);
106  }
107 
108  for_each(printer, JType<typelist>());
109 }
JLANG::JType
Auxiliary class for a type holder.
Definition: JType.hh:19
JPARSER::initialised
Empty structure for specification of parser element that is initialised (i.e.
Definition: JParser.hh:63
JPARSER::JParser
Utility class to parse command line options.
Definition: JParser.hh:1493
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
debug
int debug
debug level
Definition: JSirene.cc:59
JLANG::for_each
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
Definition: JTypeList.hh:572
JLANG::JTypeList
Type list.
Definition: JTypeList.hh:22
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1954
std
Definition: jaanetDictionary.h:36
FATAL
#define FATAL(A)
Definition: JMessage.hh:67