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;
53int main(
int argc,
char **argv)
61 JParser<> zap(
"Example program to test class enumeration.");
67 catch(
const exception &error) {
68 FATAL(error.what() << endl);
87 enumeration.
print(cout);
89 PRINT(cout, enumeration,
int);
90 PRINT(cout, enumeration, __B__);
int main(int argc, char **argv)
#define PRINT(OUT, ENUMERATION, CLASS)
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Enumeration of single data type.
static std::ostream & print(std::ostream &out)
Print enumeration.
Auxiliary data structure to label data types within a type list.
Replica of structure JLANG::JLabel for data types with ROOT I/O.
Template definition of policy class to label data types in a type list.
static const char * getName()