aboutsummaryrefslogtreecommitdiff
path: root/CSVParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CSVParser.cpp')
-rw-r--r--CSVParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/CSVParser.cpp b/CSVParser.cpp
index 7d52cd7..824d5f4 100644
--- a/CSVParser.cpp
+++ b/CSVParser.cpp
@@ -6,16 +6,16 @@
#include "CSVParser.h"
#include "Exception.h"
-#include "Parser.h"
+#include "ParserFactory.h"
using namespace std;
CSVParser CSVParser::instance {};
CSVParser::CSVParser() {
- Parser::register_strategy(this);
+ ParserFactory::register_strategy(this);
}
-unsigned int CSVParser::heuristic(FileStrategy & f) {
+unsigned int CSVParser::heuristic(FileReader & f) {
const string content = f.read();
int global_columns = 0;
int columns = 1;
@@ -41,7 +41,7 @@ static size_t header_idx(vector<string> header, string field) {
return iter - header.begin();
}
-void CSVParser::parse(FileStrategy & f, Deserializer & d) {
+void CSVParser::parse(FileReader & f, MuseumDeserializer & d) {
vector<vector<string>> table = {};
istringstream rows(f.read());