ECF 1.5
fileparser.h
1#ifndef ECF_CARTESIAN_FILEPARSER_H
2#define ECF_CARTESIAN_FILEPARSER_H
3#include <fstream>
4#include <istream>
5#include <sstream>
6#include <string>
7#include <vector>
8namespace utility{
9 typedef unsigned int uint;
10 typedef std::pair<std::vector<std::vector<double> > , std::vector<uint> > PairAllFeaturesAllLabels;
16 std::vector<std::string> parseCSVFromFile(const std::string& file_name);
17
26 PairAllFeaturesAllLabels parseStringIntoFeaturesAndLabels(const std::vector<std::string>& csv, bool leadsWithID = false);
27
34 std::pair<std::vector<double>,double> parseArgumentsAndFunctionValues(const std::string& line);
35
36}
37#endif //ECF_CARTESIAN_FILEPARSER_H