9 #include "JDB/JDBDictionary.hh"
30 virtual ~io_interface() {}
31 virtual void copy(
const std::string& input_file,
const std::string& output_file)
const = 0;
41 virtual void copy(
const std::string& input_file,
const std::string& output_file)
const override
52 for (T
object; in >> object; ) {
65 std::map<std::string, std::shared_ptr<io_interface> >
87 int main(
int argc,
char **argv)
101 JParser<> zap(
"Auxiliary program to convert ASCII data from data base into ROOT format.");
103 zap[
'f'] =
make_field(inputFile,
"ASCII formatted input file."\
104 "\nFirst line should list data members of data structure given at option -C");
106 zap[
'C'] =
make_field(selector,
"name of data structure") = getROOTClassSelection<typelist>();
113 catch(
const exception &error) {
114 FATAL(error.what() << endl);
119 for_each<typelist>(io);
ROOT TTree parameter settings.
This file is automatically created by make.
Recording of objects on file according a format that follows from the file name extension.
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)
ASCII I/O of objects with ROOT dictionary.
Object reading from ASCII file.
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
T & getInstance(const T &object)
Get static instance from temporary object.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for a type holder.
Empty structure for specification of parser element that is not initialised (i.e. does require input)...
Auxiliary class to select ROOT class based on class name.