aboutsummaryrefslogtreecommitdiff
path: root/XMLParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'XMLParser.cpp')
-rw-r--r--XMLParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/XMLParser.cpp b/XMLParser.cpp
index 6be26af..4bfde46 100644
--- a/XMLParser.cpp
+++ b/XMLParser.cpp
@@ -4,17 +4,17 @@
#include "XMLParser.h"
#include "Exception.h"
-#include "Parser.h"
+#include "ParserFactory.h"
#include "TileData.h"
using namespace std;
XMLParser XMLParser::instance {};
XMLParser::XMLParser() {
- Parser::register_strategy(this);
+ ParserFactory::register_strategy(this);
}
-unsigned int XMLParser::heuristic(FileStrategy & f) {
+unsigned int XMLParser::heuristic(FileReader & f) {
const string content = f.read();
int open_backets = 0;
int close_brackets = 0;
@@ -27,7 +27,7 @@ unsigned int XMLParser::heuristic(FileStrategy & f) {
return (open_backets + close_brackets) / penalty;
}
-void XMLParser::parse(FileStrategy & f, Deserializer & d) {
+void XMLParser::parse(FileReader & f, MuseumDeserializer & d) {
using namespace pugi;
const string content = f.read();