From 4cb7ca42003c177e3acc80075d7594e555966106 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 18 Oct 2024 16:37:02 +0200 Subject: fix command design pattern --- LoadFilesCommand.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'LoadFilesCommand.h') 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 files); + LoadFilesCommand(Museum & m, int argc, char ** argv); public: - virtual void execute(std::vector files); - virtual void execute(int argc, char ** argv); + virtual void execute(); + +private: + void load_files(); private: - void load_files(std::vector files); + Museum & museum; + std::vector files; }; -- cgit v1.2.3