#include <baciBACIAction.h>
Public Member Functions | |
BACIAction () | |
BACIAction (ActionImplementator *actionImplementator_, int actionFunction_, int callbackID_) | |
BACIAction (ActionImplementator *actionImplementator_, int actionFunction_, int callbackID_, const BACIValue &value_) | |
BACIAction & | operator= (const BACIAction &action) |
bool | operator== (const BACIAction &action) const |
ActionRequest | invoke (BACIComponent *component_p, int callbackID_, const CBDescIn &descIn, BACIValue *value, Completion &completion, CBDescOut &descOut) |
int | getActionFunction () const |
ActionImplementator * | getActionImplementator () const |
int | getCallbackID () const |
BACIValue | getValue () const |
BACIValue * | getValueRef () const |
bool | isCompleted () const |
Completion | getCompletion () const |
void | setCompletion (const Completion &c) |
Private Member Functions | |
BACIAction (const BACIAction &) | |
Private Attributes | |
int | actionFunction_m |
ActionImplementator * | actionImplementator_mp |
int | callbackID_m |
BACIValue | value_m |
bool | completed_m |
Completion | completion_m |
Class representing BACI Action Since all BACI asynchronious class has to keep all needed data to invoke action in the future...
baci::BACIAction::BACIAction | ( | ) | [inline] |
Null contructor
baci::BACIAction::BACIAction | ( | ActionImplementator * | actionImplementator_, | |
int | actionFunction_, | |||
int | callbackID_ | |||
) | [inline] |
Null value constructor
actionFunction_ | action function to be invoked in execute action | |
callbackID_ | id of the callback to be invoked |
baci::BACIAction::BACIAction | ( | ActionImplementator * | actionImplementator_, | |
int | actionFunction_, | |||
int | callbackID_, | |||
const BACIValue & | value_ | |||
) | [inline] |
Constructor
actionImplemenator_ | action implementator | |
actionFunction_ | action function to be invoked in execute action | |
callbackID_ | id of the callback to be invoked | |
value_ | action data (e.g. value to be set) |
baci::BACIAction::BACIAction | ( | const BACIAction & | ) | [private] |
ALMA C++ coding standards state copy constructors should be disabled.
int baci::BACIAction::getActionFunction | ( | ) | const [inline] |
Get BACI Action Function
ActionImplementator* baci::BACIAction::getActionImplementator | ( | ) | const [inline] |
Get BACI Action Implementator
int baci::BACIAction::getCallbackID | ( | ) | const [inline] |
Get callback ID
Completion baci::BACIAction::getCompletion | ( | ) | const [inline] |
Get completion data
BACIValue baci::BACIAction::getValue | ( | ) | const [inline] |
Get action data
BACIValue* baci::BACIAction::getValueRef | ( | ) | const [inline] |
Get reference to action data
ActionRequest baci::BACIAction::invoke | ( | BACIComponent * | component_p, | |
int | callbackID_, | |||
const CBDescIn & | descIn, | |||
BACIValue * | value, | |||
Completion & | completion, | |||
CBDescOut & | descOut | |||
) | [inline] |
Invoke action
component_p | owner of the action | |
callbackID | id of the callback to be notified | |
descIn | callback descriptor (passed by client) | |
value | action data (e.g. value to be set) | |
completion | error handing structure | |
descOut | callback descriptor which will be passed to client |
bool baci::BACIAction::isCompleted | ( | ) | const [inline] |
Get completion state
BACIAction& baci::BACIAction::operator= | ( | const BACIAction & | action | ) | [inline] |
Assignment operator
References actionFunction_m, actionImplementator_mp, callbackID_m, completed_m, completion_m, and value_m.
bool baci::BACIAction::operator== | ( | const BACIAction & | action | ) | const [inline] |
Compare (equals) operator
References callbackID_m.
void baci::BACIAction::setCompletion | ( | const Completion & | c | ) | [inline] |
Set completion state to true
int baci::BACIAction::actionFunction_m [private] |
BACI Action Function
Referenced by operator=().
BACI Action Implementator
Referenced by operator=().
int baci::BACIAction::callbackID_m [private] |
Callback ID
Referenced by operator=(), and operator==().
bool baci::BACIAction::completed_m [private] |
Completion state
Referenced by operator=().
Completion baci::BACIAction::completion_m [private] |
Completion data
Referenced by operator=().
BACIValue baci::BACIAction::value_m [private] |
Action data (e.g. value to be set)
Referenced by operator=().