9 #include "JDB/JDBDictionary.hh"
30 virtual ~io_interface() {}
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);
Utility class to parse command line options.
Object reading from ASCII file.
int main(int argc, char *argv[])
Auxiliary class to select ROOT class based on class name.
Recording of objects on file according a format that follows from the file name extension.
Auxiliary class for a type holder.
ASCII I/O of objects with ROOT dictionary.
T & getInstance(const T &object)
Get static instance from temporary object.
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
do set_variable OUTPUT_DIRECTORY $WORKDIR T
ROOT TTree parameter settings.
General purpose messaging.
Empty structure for specification of parser element that is not initialised (i.e. does require input)...
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
virtual void open(const char *file_name) override
Open file.
This file is automatically created by make.