dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
command.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide more complex example and describe more usage.
[command.git]
/
include
/
callable.h
diff --git
a/include/callable.h
b/include/callable.h
index bf74377de5ebe5e7823cefdaf873adfb9e2a3953..4ac1bd97635e43d8b9956b35857155e59ba0ec1e 100644
(file)
--- a/
include/callable.h
+++ b/
include/callable.h
@@
-7,13
+7,13
@@
namespace command {
/**
* Callable behaviour class.
*/
/**
* Callable behaviour class.
*/
- template<typename
Argument
Type>
+ template<typename
Parameter
Type>
class Callable {
protected:
/**
* Function handling user Arguments
*/
class Callable {
protected:
/**
* Function handling user Arguments
*/
- void (*func)(
Argument
Type);
+ void (*func)(
Parameter
Type);
public:
/**
public:
/**
@@
-21,9
+21,10
@@
namespace command {
*
* @param function Function that will be invoked
*/
*
* @param function Function that will be invoked
*/
- Callable(void (*function)(
Argument
Type))
+ Callable(void (*function)(
Parameter
Type))
: func(function) {
}
: func(function) {
}
+
virtual ~Callable() { }
protected:
virtual ~Callable() { }
protected:
@@
-32,7
+33,7
@@
namespace command {
*
* @param value Value passed to program argument
*/
*
* @param value Value passed to program argument
*/
- void call(
Argument
Type value) {
+ void call(
Parameter
Type value) {
this->func(value);
}
};
this->func(value);
}
};