aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Command.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Command.hh')
-rw-r--r--src/FbTk/Command.hh11
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 @@
25namespace FbTk { 25namespace FbTk {
26 26
27/// Interface class for commands 27/// Interface class for commands
28template <typename Ret=void>
28class Command { 29class Command {
29public: 30public:
30 virtual ~Command() { } 31 virtual ~Command() { }
31 virtual void execute() = 0; 32 virtual Ret execute() = 0;
32};
33
34/// Interface class for boolean commands
35class BoolCommand: public Command {
36public:
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