Mercurial > hg > orthanc-stone
diff Applications/Commands/ICommand.h @ 319:daa04d15192c am-2
new SimpleViewer sample that has been split in multiple files to be able to scale it
author | am@osimis.io |
---|---|
date | Thu, 11 Oct 2018 13:16:54 +0200 |
parents | be2660b6e40a |
children | b70e9be013e4 |
line wrap: on
line diff
--- a/Applications/Commands/ICommand.h Mon Oct 08 17:10:08 2018 +0200 +++ b/Applications/Commands/ICommand.h Thu Oct 11 13:16:54 2018 +0200 @@ -70,13 +70,25 @@ virtual void Execute() {} }; - class SimpleCommand : public BaseCommand<SimpleCommand> + class GenericNoArgCommand : public BaseCommand<GenericNoArgCommand> { public: - SimpleCommand(const std::string& name) + GenericNoArgCommand(const std::string& name) : BaseCommand(name) {} virtual void Execute() {} // TODO currently not used but this is not nice at all ! }; + class GenericOneStringArgCommand : public BaseCommand<GenericOneStringArgCommand> + { + std::string argument_; + public: + GenericOneStringArgCommand(const std::string& name, const std::string& argument) + : BaseCommand(name) + {} + + const std::string& GetArgument() const {return argument_;} + virtual void Execute() {} // TODO currently not used but this is not nice at all ! + }; + }