diff options
Diffstat (limited to 'src/FbTk/Command.hh')
-rw-r--r-- | src/FbTk/Command.hh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/FbTk/Command.hh b/src/FbTk/Command.hh index 5d38cb8..f1eb8f2 100644 --- a/src/FbTk/Command.hh +++ b/src/FbTk/Command.hh | |||
@@ -25,18 +25,11 @@ | |||
25 | namespace FbTk { | 25 | namespace FbTk { |
26 | 26 | ||
27 | /// Interface class for commands | 27 | /// Interface class for commands |
28 | template <typename Ret=void> | ||
28 | class Command { | 29 | class Command { |
29 | public: | 30 | public: |
30 | virtual ~Command() { } | 31 | virtual ~Command() { } |
31 | virtual void execute() = 0; | 32 | virtual Ret execute() = 0; |
32 | }; | ||
33 | |||
34 | /// Interface class for boolean commands | ||
35 | class BoolCommand: public Command { | ||
36 | public: | ||
37 | virtual ~BoolCommand() { } | ||
38 | virtual void execute() { bool_execute(); } | ||
39 | virtual bool bool_execute() = 0; | ||
40 | }; | 33 | }; |
41 | 34 | ||
42 | } // end namespace FbTk | 35 | } // end namespace FbTk |