Jpp  15.0.4
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JPrintRootClass.cc File Reference

Auxiliary program to print class information. More...

#include <string>
#include <iostream>
#include <iomanip>
#include "km3net-dataformat/offline/Head.hh"
#include "km3net-dataformat/offline/Evt.hh"
#include "JAAnet/JHead.hh"
#include "JDAQ/JDAQTimesliceIO.hh"
#include "JDAQ/JDAQEventIO.hh"
#include "JDAQ/JDAQSummarysliceIO.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

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 }
Utility class to parse command line options.
Definition: JParser.hh:1500
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Definition: JParser.hh:66
Auxiliary class for a type holder.
Definition: JType.hh:19
Type list.
Definition: JTypeList.hh:22
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1961
int debug
debug level
Definition: JSirene.cc:63
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
Definition: JTypeList.hh:415
#define FATAL(A)
Definition: JMessage.hh:67