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))
28 virtual ~Callable() { }
32 * Executes command binded with argument
34 * @param value Value passed to program argument
36 void call(ArgumentType value) {
42 * Template specialization of Callable behaviour class.
43 * Allows passing functions with void argument
46 class Callable<void> {
49 * Function handling user Arguments
55 * Default constructor.
57 * @param function Function that will be invoked
59 Callable(void (*function)(void))
62 virtual ~Callable() { }
74 #endif /* __COMMAND_DESCRIPTIVE_H */