40 inline void print(std::ostream& out,
const char* name, TFile* file = NULL)
45 TDictionary* dictionary = TDictionary::GetDictionary(name);
47 out << setw(40) << left << name <<
' ';
49 if (dictionary != NULL) {
50 out << setw( 4) << right << dynamic_cast<TClass*>(dictionary)->GetClassVersion() <<
' ';
79 template<
class JHead_t,
class JTail_t>
82 print(out, JHead_t::Class_Name(), file);
94 int main(
int argc,
char **argv)
104 JParser<> zap(
"Auxiliary program to print ROOT class version information.");
112 catch(
const exception &error) {
113 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 !=
"")
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
ROOT TTree parameter settings of various packages.
Utility class to parse command line options.
TFile * getFile() const
Get file.
virtual bool is_open() const override
Check is file is open.
std::ostream & print(std::ostream &out, const JTestSummary &summary, const char delimiter=' ', const bool useColors=true)
Print test summary.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int getStreamerVersion(TFile *file, const char *const name)
Get ROOT streamer version of class with given name.
Auxiliary class for a type holder.