Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
csv2shell.cc
Go to the documentation of this file.
1 #include "csv2shell.hh"
2 
3 template <>
4 void convertHeader<SHELL>(std::ostream& out, const Header& header) {
5  out << "#!/bin/zsh\n";
6  out << "# " << header.description << "\n";
7  out << "# " << header.url << "\n";
8  out << "\n";
9 }
10 
11 template <>
12 void convertCSV<SHELL>(std::ostream& out, const CSV& csv) {
13  for (auto i = 0; i < csv.types.size(); i++) {
14  out << "export " << csv.names[i] << "=" << csv.numbers[i] << "\n";
15  }
16  out << "\n";
17 }
void convertCSV< SHELL >(std::ostream &out, const CSV &csv)
Definition: csv2shell.cc:12
void convertHeader< SHELL >(std::ostream &out, const Header &header)
Definition: csv2shell.cc:4
Definition: csv2code.hh:15