#include <iostream>
#include <string>
#include <vector>
Go to the source code of this file.
template<typename LANG >
void convertCSV |
( |
std::ostream & |
out, |
|
|
const CSV & |
csv |
|
) |
| |
template<typename LANG >
void convertHeader |
( |
std::ostream & |
out, |
|
|
const Header & |
header |
|
) |
| |
template<typename LANG >
void convert |
( |
std::ostream & |
out, |
|
|
const Header & |
header, |
|
|
const CSV & |
csv |
|
) |
| |
Definition at line 29 of file csv2code.hh.
30 convertHeader<LANG>(out, header);
31 convertCSV<LANG>(out, csv);
CSV readCSV |
( |
std::istream & |
in | ) |
|
Definition at line 18 of file csv2code.cc.
23 if (line.size() < 2 || line[0] ==
'#') {
27 stringstream sline(line);
32 csv.
types.emplace_back(type);
33 csv.
names.emplace_back(name);
34 csv.
numbers.emplace_back(number);
std::vector< std::string > types
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
std::vector< std::string > numbers
then fatal The output file must have the wildcard in the name
std::vector< std::string > comments
then fatal The output file must have the wildcard in the e g root fi 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
then set_variable DETECTOR set_variable OUTPUT_FILE set_variable DAQ_FILE set_variable PMT_FILE else fatal Wrong number of arguments fi JPrintTree f $DAQ_FILE type
std::vector< std::string > names