Jpp  18.0.1-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JPrintTreeParameters.cc File Reference

Auxiliary program to print ROOT TTree parameters. More...

#include <string>
#include <iostream>
#include <iomanip>
#include "JROOT/JTreeParameters.hh"
#include "JAAnet/JSupport.hh"
#include "JDAQ/JSupport.hh"
#include "JSupport/JSupport.hh"
#include "JLang/JBool.hh"
#include "JLang/JType.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 ROOT TTree parameters.

Author
mdejong

Definition in file JPrintTreeParameters.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 72 of file JPrintTreeParameters.cc.

73 {
74  using namespace std;
75  using namespace JPP;
76  using namespace KM3NETDAQ;
77 
78  int debug;
79 
80  try {
81 
82  JParser<> zap("Auxiliary program to print ROOT TTree parameters.");
83 
84  zap['d'] = make_field(debug) = 1;
85 
86  zap(argc, argv);
87  }
88  catch(const exception &error) {
89  FATAL(error.what() << endl);
90  }
91 
92  JPrinter printer;
93 
94  for_each(printer, JType<JAllTypes_t>());
95 }
Utility class to parse command line options.
Definition: JParser.hh:1514
Auxiliary class to temporarily replace std::ostream.
Auxiliary class for a type holder.
Definition: JType.hh:19
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1989
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
int debug
debug level