8#include "JDB/JDBDictionary.hh"
32 virtual ~io_interface() {}
33 virtual void copy(
const std::string& input_file,
const JMeta& meta,
const std::string& output_file)
const = 0;
40 std::map<std::string, std::shared_ptr<io_interface> >
49 virtual void copy(
const std::string& input_file,
const JMeta& meta,
const std::string& output_file)
const override
60 for (T
object; in >> object; ) {
87 void operator()(
const JType<T>& type)
115 JParser<> zap(
"Auxiliary program to convert ASCII data from data base into ROOT format.");
117 zap[
'f'] =
make_field(inputFile,
"ASCII formatted input file."\
118 "\nFirst line should list data members of data structure given at option -C");
127 catch(
const exception &error) {
128 FATAL(error.what() << endl);
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.
JType< T > getType()
Get type.
void for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
std::set< JROOTClassSelector > getROOTClassSelection(const bool option=false)
Get ROOT class selection.
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.