diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 16:37:02 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 16:37:02 +0200 |
commit | 4cb7ca42003c177e3acc80075d7594e555966106 (patch) | |
tree | d2f5836d70a1fa2dc1d18c4fb59f1bf1f2f91f5a /LoadFilesCommand.h | |
parent | d8289105193707daede1a5b59137f18e20f20aeb (diff) |
fix command design pattern
Diffstat (limited to 'LoadFilesCommand.h')
-rw-r--r-- | LoadFilesCommand.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/LoadFilesCommand.h b/LoadFilesCommand.h index e13d873..19913d8 100644 --- a/LoadFilesCommand.h +++ b/LoadFilesCommand.h @@ -5,14 +5,21 @@ #include "Command.h" +class Museum; + class LoadFilesCommand : public Command { - using Command::Command; +public: + LoadFilesCommand(Museum & m, std::vector<std::string> files); + LoadFilesCommand(Museum & m, int argc, char ** argv); public: - virtual void execute(std::vector<std::string> files); - virtual void execute(int argc, char ** argv); + virtual void execute(); + +private: + void load_files(); private: - void load_files(std::vector<std::string> files); + Museum & museum; + std::vector<std::string> files; }; |