8 #include "JDB/JDBincludes.hh"
9 #include "JDB/JDBDictionary.hh"
49 ifstream
in(input_file.c_str());
59 for (istringstream
is(buffer);
is >> buffer; ) {
60 columns.push_back(cls.find(buffer.c_str()));
72 for (istringstream
is(buffer);
is >> buffer && i != columns.size(); ++i) {
78 if (reader.getObject(columns[i])) {
98 std::map<std::string, std::shared_ptr<io_interface> >
120 int main(
int argc,
char **argv)
134 JParser<> zap(
"Auxiliary program to convert ASCII data from data base into ROOT format.");
136 zap[
'f'] =
make_field(inputFile,
"ASCII formatted input file."\
137 "\nFirst line should list data members of data structure given at option -C");
139 zap[
'C'] =
make_field(selector,
"name of data structure") = getROOTClassSelection<typelist>();
146 catch(
const exception &error) {
147 FATAL(error.what() << endl);
Utility class to parse command line options.
ROOT class for reading object.
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.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Auxiliary class for a type holder.
Implementation for ASCII input of objects with ROOT dictionary.
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
bool is_valid(const json &js)
Check validity of JSon data.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
ROOT TTree parameter settings.
General purpose messaging.
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
Empty structure for specification of parser element that is not initialised (i.e. does require input)...
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.
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
This class can be used to temporarily redirect an input stream to an input string.
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null