diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:43:25 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:43:25 +0200 |
commit | 76e61d68bbf568ec0d7fc4632e52d4de5496b003 (patch) | |
tree | 92a2dc9b12a542456bdc154f44deb34925883210 /XMLParser.cpp | |
parent | 3f63576819151ff15237a9b4f0651c538cfef067 (diff) |
(1/2) rename
Diffstat (limited to 'XMLParser.cpp')
-rw-r--r-- | XMLParser.cpp | 8 |
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(); |