#include #include #include #include "JROOT/JRootDictionary.hh" #include "Jeep/JPrint.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * Print data type. * * \param OUT output stream * \param T data type */ #define PRINT(OUT, T) \ OUT \ << std::setw(16) << left << #T << " --> " \ << std::setw(16) << left << TDictionary::GetDictionary(typeid(T))->GetName() << std::endl; /** * \file * * Program to print ROOT dictionary. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; int debug; try { JParser<> zap("Program to print ROOT dictionary."); zap['d'] = make_field(debug) = 3; zap(argc, argv); } catch(const exception& error) { FATAL(error.what() << endl); } const JRootDictionary_t& dictionary = JRootDictionary::getInstance(); for (JRootDictionary_t::const_iterator i = dictionary.begin(); i != dictionary.end(); ++i) { cout << i->first << endl; } PRINT(cout, Long64_t); PRINT(cout, ULong64_t); return 0; }