1 #ifndef __COMMAND_CALLABLE_H
2 #define __COMMAND_CALLABLE_H
8 * Callable behaviour class.
10 template<typename ArgumentType>
14 * Function handling user Arguments
16 void (*func)(ArgumentType);
20 * Default constructor.
22 * @param function Function that will be invoked
24 Callable(void (*function)(ArgumentType))
27 virtual ~Callable() { }
31 * Executes command binded with argument
33 * @param value Value passed to program argument
35 void call(ArgumentType value) {
41 * Template specialization of Callable behaviour class.
42 * Allows passing functions with void argument
45 class Callable<void> {
48 * Function handling user Arguments
54 * Default constructor.
56 * @param function Function that will be invoked
58 Callable(void (*function)(void))
61 virtual ~Callable() { }
73 #endif /* __COMMAND_DESCRIPTIVE_H */