/**
* Callable behaviour class.
*/
- template<typename ArgumentType>
+ template<typename ParameterType>
class Callable {
protected:
/**
* Function handling user Arguments
*/
- void (*func)(ArgumentType);
+ void (*func)(ParameterType);
public:
/**
*
* @param function Function that will be invoked
*/
- Callable(void (*function)(ArgumentType))
+ Callable(void (*function)(ParameterType))
: func(function) {
}
+
virtual ~Callable() { }
protected:
*
* @param value Value passed to program argument
*/
- void call(ArgumentType value) {
+ void call(ParameterType value) {
this->func(value);
}
};