#include <iostream>
#include <string>
#include <vector>
Go to the source code of this file.
◆ convertCSV()
template<typename LANG > 
      
        
          | void convertCSV  | 
          ( | 
          std::ostream & |           out,  | 
        
        
           | 
           | 
          const CSV & |           csv ) | 
        
      
 
 
◆ convertHeader()
template<typename LANG > 
      
        
          | void convertHeader  | 
          ( | 
          std::ostream & |           out,  | 
        
        
           | 
           | 
          const Header & |           header ) | 
        
      
 
 
◆ convert()
template<typename LANG > 
      
        
          | void convert  | 
          ( | 
          std::ostream & |           out,  | 
        
        
           | 
           | 
          const Header & |           header,  | 
        
        
           | 
           | 
          const CSV & |           csv ) | 
        
      
 
Definition at line 29 of file csv2code.hh.
   29                                                                    {
   32}
void convertHeader(std::ostream &out, const Header &header)
 
void convertCSV(std::ostream &out, const CSV &csv)
 
 
 
 
◆ readCSV()
      
        
          | CSV readCSV  | 
          ( | 
          std::istream & |           in | ) | 
           | 
        
      
 
Definition at line 18 of file csv2code.cc.
   18                         {
   19  
   21  string line;
   23    if (line.size() < 2 || line[0] == '#') {
   24      continue;
   25    }
   26    string type, name, number, comment;
   27    stringstream sline(line);
   32    csv.
types.emplace_back(type);
 
   33    csv.
names.emplace_back(name);
 
   34    csv.
numbers.emplace_back(number);
 
   36  }
   37  return csv;
   38}
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
 
std::vector< std::string > numbers
 
std::vector< std::string > types
 
std::vector< std::string > names
 
std::vector< std::string > comments