TTEthernet Model for INET Framework
|
Class representing a Task. More...
#include <Task.h>
Public Member Functions | |
Task () | |
Constructor. More... | |
virtual void | setFunctionPointer (void(*functionPointer)(void *)) |
Setter for the function pointer. More... | |
virtual cbFunc | getFunctionPointer () |
Getter for the function pointer. More... | |
virtual void | setFunctionArg (void *setFunctionArg) |
Setter for the function args. More... | |
virtual void * | getFunctionArg () |
Getter for the function args. More... | |
virtual void | executeTask () |
execution of the task. More... | |
Protected Attributes | |
void(* | fn )(void *) |
Function pointer of the task. More... | |
void * | arg |
Pointer to the function args. More... | |
bool | argSet |
Boolean indicating whether args were set. More... | |
Class representing a Task.
The class stores a funtion pointer and args and invokes the function periodically.
|
inline |
|
inlinevirtual |
execution of the task.
If method is called the stored function pointer is invoked.
Definition at line 101 of file Task.h.
Referenced by TTEthernetModel::TTEAPIApplicationBase::handleMessage().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Setter for the function args.
setFunctionArg | the funtion arg to be used in the task |
Definition at line 82 of file Task.h.
Referenced by TTEthernetModel::TTEAPIApplicationBase::registerTask().
|
inlinevirtual |
Setter for the function pointer.
functionPointer | the funtion pointer to be invoked in the task |
Definition at line 64 of file Task.h.
Referenced by TTEthernetModel::TTEAPIApplicationBase::registerTask().
|
protected |
Pointer to the function args.
Definition at line 46 of file Task.h.
Referenced by executeTask(), getFunctionArg(), and setFunctionArg().
|
protected |
Boolean indicating whether args were set.
Definition at line 50 of file Task.h.
Referenced by setFunctionArg(), and Task().
|
protected |
Function pointer of the task.
Definition at line 42 of file Task.h.
Referenced by executeTask(), getFunctionPointer(), and setFunctionPointer().