X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=include%2Fcallable.h;fp=include%2Fcallable.h;h=4ac1bd97635e43d8b9956b35857155e59ba0ec1e;hb=68461ce43951a67646427c05ba94a960dcfa0a55;hp=544b37115fb2cbe4b756ae1bb10f439812c76c8b;hpb=0c3fb217c99492ca15f3ff4a8a0402b801d7105f;p=command.git diff --git a/include/callable.h b/include/callable.h index 544b371..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,7 +21,7 @@ namespace command { * * @param function Function that will be invoked */ - Callable(void (*function)(ArgumentType)) + Callable(void (*function)(ParameterType)) : func(function) { } @@ -33,7 +33,7 @@ namespace command { * * @param value Value passed to program argument */ - void call(ArgumentType value) { + void call(ParameterType value) { this->func(value); } };