Move CSV code into its own file

This commit is contained in:
Eric Fischer
2017-10-10 14:57:38 -07:00
parent 54e9cd3cae
commit 19117d8060
5 changed files with 125 additions and 86 deletions
+14
View File
@@ -0,0 +1,14 @@
#ifndef CSV_HPP
#define CSV_HPP
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <string>
#include <map>
std::vector<std::string> csv_split(char *s);
std::string csv_dequote(std::string s);
void readcsv(char *fn, std::vector<std::string> &header, std::map<std::string, std::vector<std::string>> &mapping);
#endif