aboutsummaryrefslogtreecommitdiff
path: root/CSVParser.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:43:25 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 15:43:25 +0200
commit76e61d68bbf568ec0d7fc4632e52d4de5496b003 (patch)
tree92a2dc9b12a542456bdc154f44deb34925883210 /CSVParser.cpp
parent3f63576819151ff15237a9b4f0651c538cfef067 (diff)
(1/2) rename
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());