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 544b37115fb2cbe4b756ae1bb10f439812c76c8b..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,7
+21,7
@@
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) {
}
@@
-33,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);
}
};