X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=include%2Fcallable.h;h=4ac1bd97635e43d8b9956b35857155e59ba0ec1e;hb=a62cd661611b4c90b5ebe70f6f466f04a7f98684;hp=bf74377de5ebe5e7823cefdaf873adfb9e2a3953;hpb=c85d60a873e21052a470c172df4ba56a1c0d59c6;p=command.git diff --git a/include/callable.h b/include/callable.h index bf74377..4ac1bd9 100644 --- a/include/callable.h +++ b/include/callable.h @@ -7,13 +7,13 @@ namespace command { /** * Callable behaviour class. */ - template + template class Callable { protected: /** * Function handling user Arguments */ - void (*func)(ArgumentType); + void (*func)(ParameterType); public: /** @@ -21,9 +21,10 @@ namespace command { * * @param function Function that will be invoked */ - Callable(void (*function)(ArgumentType)) + Callable(void (*function)(ParameterType)) : func(function) { } + virtual ~Callable() { } protected: @@ -32,7 +33,7 @@ namespace command { * * @param value Value passed to program argument */ - void call(ArgumentType value) { + void call(ParameterType value) { this->func(value); } };