Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
318:3a4ca166fafa | 319:daa04d15192c |
---|---|
68 : BaseCommand("noop") | 68 : BaseCommand("noop") |
69 {} | 69 {} |
70 virtual void Execute() {} | 70 virtual void Execute() {} |
71 }; | 71 }; |
72 | 72 |
73 class SimpleCommand : public BaseCommand<SimpleCommand> | 73 class GenericNoArgCommand : public BaseCommand<GenericNoArgCommand> |
74 { | 74 { |
75 public: | 75 public: |
76 SimpleCommand(const std::string& name) | 76 GenericNoArgCommand(const std::string& name) |
77 : BaseCommand(name) | 77 : BaseCommand(name) |
78 {} | 78 {} |
79 virtual void Execute() {} // TODO currently not used but this is not nice at all ! | 79 virtual void Execute() {} // TODO currently not used but this is not nice at all ! |
80 }; | 80 }; |
81 | 81 |
82 class GenericOneStringArgCommand : public BaseCommand<GenericOneStringArgCommand> | |
83 { | |
84 std::string argument_; | |
85 public: | |
86 GenericOneStringArgCommand(const std::string& name, const std::string& argument) | |
87 : BaseCommand(name) | |
88 {} | |
89 | |
90 const std::string& GetArgument() const {return argument_;} | |
91 virtual void Execute() {} // TODO currently not used but this is not nice at all ! | |
92 }; | |
93 | |
82 } | 94 } |