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 /LoadFilesCommand.cpp | |
parent | 3f63576819151ff15237a9b4f0651c538cfef067 (diff) |
(1/2) rename
Diffstat (limited to 'LoadFilesCommand.cpp')
-rw-r--r-- | LoadFilesCommand.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/LoadFilesCommand.cpp b/LoadFilesCommand.cpp index 9a0ca08..ae9f30a 100644 --- a/LoadFilesCommand.cpp +++ b/LoadFilesCommand.cpp @@ -2,12 +2,12 @@ #include <string> #include "LoadFilesCommand.h" -#include "Deserializer.h" +#include "MuseumDeserializer.h" #include "Exception.h" +#include "FileReaderFactory.h" #include "FileReader.h" -#include "FileStrategy.h" -#include "MuseumPauseCommand.h" -#include "Parser.h" +#include "ToggleMuseumPauseCommand.h" +#include "ParserFactory.h" using namespace std; @@ -28,13 +28,13 @@ void LoadFilesCommand::execute(vector<string> files) { } void LoadFilesCommand::load_files(vector<string> files) { - MuseumPauseCommand(this).set(true); + ToggleMuseumPauseCommand(this).set(true); - Deserializer deserializer { this->get_museum() }; + MuseumDeserializer deserializer { this->get_museum() }; for (string url : files) { - unique_ptr<FileStrategy> file = FileReader::open(url); + unique_ptr<FileReader> file = FileReaderFactory::open(url); try { - Parser::parse(*file, deserializer); + ParserFactory::parse(*file, deserializer); } catch (Exception & e) { throw Exception("parser error: %s (%s)", e.what(), url.c_str()); } |