RTI Connext Traditional C++ API
Version 5.3.0
|
<<interface>> Root class for all the conditions that may be attached to a DDSWaitSet. More...
Public Member Functions | |
virtual DDS_Boolean | get_trigger_value ()=0 |
Retrieve the trigger_value . | |
virtual DDS_ReturnCode_t | set_handler (DDSConditionHandler *handler) |
Registers a DDSConditionHandler in this DDSCondition. | |
virtual DDSConditionHandler * | get_handler () |
Returns the registered DDSConditionHandler. | |
virtual void | dispatch () |
Calls DDSConditionHandler::on_condition_triggered of the registered DDSConditionHandler. | |
<<interface>> Root class for all the conditions that may be attached to a DDSWaitSet.
This basic class is specialised in three classes:
DDSGuardCondition, DDSStatusCondition, and DDSReadCondition.
A DDSCondition has a trigger_value
that can be DDS_BOOLEAN_TRUE or DDS_BOOLEAN_FALSE and is set automatically by RTI Connext.
|
pure virtual |
|
virtual |
Registers a DDSConditionHandler in this DDSCondition.
This operation replaces any existing registered handler. If there is any resources associated with an existing registered handler that need to be released, you may first call DDSCondition::get_handler to retrieve the handler.
handler | The DDSConditionHandler to be called by DDSCondition::dispatch. If this parameter is null, an no-op handler implemenation will be set. |
|
virtual |
Returns the registered DDSConditionHandler.
If no DDSConditionHandler is registered, this operation returns a no-op DDSConditionHandler implementation.
|
virtual |
Calls DDSConditionHandler::on_condition_triggered of the registered DDSConditionHandler.
If the trigger value is true, calling this operation will call the registered.
If no DDSConditionHandler is registered, this operation is a no-op.