Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
csv2julia.cc
Go to the documentation of this file.
1 #include "csv2julia.hh"
2 
3 template <>
4 void convertHeader<JULIA>(std::ostream& out, const Header& header) {
5  out << "\"\"\"\n";
6  out << "# " << header.description << "\n";
7  out << header.url << "\n";
8  out << "\"\"\"\n";
9  out << "\n";
10  std::string BASE = header.base;
11  for (auto& c : BASE) {
12  c = toupper(c);
13  }
14  out << "module " << BASE << "\n";
15 }
16 
17 template <>
18 void convertCSV<JULIA>(std::ostream& out, const CSV& csv) {
19  for (auto i = 0; i < csv.types.size(); i++) {
20  out << " const " << csv.names[i] << " = " << csv.numbers[i] << "\n";
21  }
22  out << "end\n";
23 }
static const JPBS_t BASE(3, 2)
PBS of detection unit base
void convertHeader< JULIA >(std::ostream &out, const Header &header)
Definition: csv2julia.cc:4
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
void convertCSV< JULIA >(std::ostream &out, const CSV &csv)
Definition: csv2julia.cc:18
Definition: csv2code.hh:15