9#include "JDB/JDBDictionary.hh"
27 virtual ~io_interface() {}
28 virtual void copy(
const std::string& query,
const JSelector& selection)
const = 0;
35 std::map<std::string, std::shared_ptr<io_interface> >
44 virtual void copy(
const std::string& query,
const JSelector& selection)
const
69 for_each(*
this, type);
78 void operator()(
const JType<T>& type)
80 (*this)[T::getName()] = std::make_shared< io<T> >();
92int main(
int argc,
char **argv)
109 JParser<> zap(
"Auxiliary program to convert data from data base into ASCII format.");
111 zap[
's'] =
make_field(server) = getServernames();
115 zap[
'q'] =
make_field(query) = getQueries<typelist>();
123 catch(
const exception &error) {
124 FATAL(error.what() << endl);
130 JDB::reset(usr, pwd, cookie);
132 JDBToolkit::initialise(getDetector);
136 io[query]->copy(query, selection);
138 catch(
const exception& error) {
139 FATAL(error.what() << endl);
int main(int argc, char **argv)
ROOT TTree parameter settings.
This file is automatically created by make.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Object iteration from database.
Auxiliary class for specifying selection of database data.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Utility class to parse command line options.
Template implementation of stream output for single data type based on ROOT dictionary.
Implementation for ASCII output of objects with ROOT dictionary.
std::pair< int, std::string > const & getType(CLBCommonHeader const &header)
void copy(const Head &from, JHead &to)
Copy header from from to to.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Wrapper class for server name.
Auxiliary class for a type holder.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Empty structure for specification of parser element that is not initialised (i.e. does require input)...