aboutsummaryrefslogtreecommitdiff
path: root/LoadFilesCommand.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 16:37:02 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-18 16:37:02 +0200
commit4cb7ca42003c177e3acc80075d7594e555966106 (patch)
treed2f5836d70a1fa2dc1d18c4fb59f1bf1f2f91f5a /LoadFilesCommand.h
parentd8289105193707daede1a5b59137f18e20f20aeb (diff)
fix command design pattern
Diffstat (limited to 'LoadFilesCommand.h')
-rw-r--r--LoadFilesCommand.h15
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;
};