39 inline void print(std::ostream& out,
const char* name, TFile* file = NULL)
44 TDictionary* dictionary = TDictionary::GetDictionary(name);
46 out << setw(40) << left << name <<
' ';
48 if (dictionary != NULL) {
49 out << setw( 4) << right << dynamic_cast<TClass*>(dictionary)->GetClassVersion() <<
' ';
78 template<
class JHead_t,
class JTail_t>
81 print(out, JHead_t::Class_Name(), file);
93 int main(
int argc,
char **argv)
103 JParser<> zap(
"Auxiliary program to print ROOT class version information.");
111 catch(
const exception &error) {
112 FATAL(error.what() << endl);
121 if (input_file !=
"") {
124 file.
open(input_file.c_str());
126 catch(
const exception& error) {
127 FATAL(error.what() << endl);
131 FATAL(
"Error opening file " << input_file << endl);
135 if (class_name !=
"")