Go to the documentation of this file.
30 static const int ID = 9;
32 static const char*
getName() {
return "__B__"; }
43 #define PRINT(OUT, ENUMERATION, CLASS) \
44 OUT << setw(10) << left << #CLASS << " --> " << ENUMERATION.getLabel(JLANG::JType<CLASS>()).getID() << endl;
53 int main(
int argc,
char **argv)
61 JParser<> zap(
"Example program to test class enumeration.");
67 catch(
const exception &error) {
68 FATAL(error.what() << endl);
80 JTypeList<std::string,
81 JTypeList<double> > > > > > JTypelist_t;
84 const JEnumeration<JTypelist_t> enumeration;
87 enumeration.
print(cout);
89 PRINT(cout, enumeration,
int);
90 PRINT(cout, enumeration, __B__);
#define PRINT(OUT, ENUMERATION, CLASS)
int main(int argc, char **argv)
Template definition of policy class to label data types in a type list.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure to label data types within a type list.
static const char * getName()
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
std::ostream & print(std::ostream &out, const bool lpr=false) const
Print DAQ Timeslice.
KM3NeT DAQ data structures and auxiliaries.
Replica of structure JLANG::JLabel for data types with ROOT I/O.