Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
csv2code.hh
Go to the documentation of this file.
1 #ifndef __csv2code__hh
2 #define __csv2code__hh
3 
4 #include <iostream>
5 #include <string>
6 #include <vector>
7 
8 struct Header {
9  std::string base;
10  std::string description;
11  std::string url;
12 };
13 
14 // the columns of the input CSV file
15 struct CSV {
20 };
21 
22 template <typename LANG>
23 void convertCSV(std::ostream& out, const CSV& csv);
24 
25 template <typename LANG>
26 void convertHeader(std::ostream& out, const Header& header);
27 
28 template <typename LANG>
29 void convert(std::ostream& out, const Header& header, const CSV& csv) {
30  convertHeader<LANG>(out, header);
31  convertCSV<LANG>(out, csv);
32 }
33 
34 CSV readCSV(std::istream& in);
35 
36 #endif
std::vector< std::string > types
Definition: csv2code.hh:16
void convertHeader(std::ostream &out, const Header &header)
std::string url
Definition: csv2code.hh:11
CSV readCSV(istream &in)
Definition: csv2code.cc:18
void convertCSV(std::ostream &out, const CSV &csv)
std::string description
Definition: csv2code.hh:10
std::vector< std::string > numbers
Definition: csv2code.hh:18
void convert(std::ostream &out, const Header &header, const CSV &csv)
Definition: csv2code.hh:29
std::vector< std::string > comments
Definition: csv2code.hh:19
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
Definition: JCanberra.sh:48
Definition: csv2code.hh:15
std::vector< std::string > names
Definition: csv2code.hh:17
std::string base
Definition: csv2code.hh:9