RTI Connext Traditional C++ API  Version 6.0.0
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DDSCondition Class Referenceabstract

<<interface>> Root class for all the conditions that may be attached to a DDSWaitSet. More...

Inheritance diagram for DDSCondition:
DDSGuardCondition DDSReadCondition DDSStatusCondition DDSQueryCondition

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 DDSConditionHandlerget_handler ()
 Returns the registered DDSConditionHandler.
 
virtual void dispatch ()
 Calls DDSConditionHandler::on_condition_triggered of the registered DDSConditionHandler.
 

Detailed Description

<<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.

See Also
DDSWaitSet

Member Function Documentation

virtual DDS_Boolean DDSCondition::get_trigger_value ( )
pure virtual

Retrieve the trigger_value.

Returns
the trigger value.

Implemented in DDSGuardCondition.

virtual DDS_ReturnCode_t DDSCondition::set_handler ( DDSConditionHandler handler)
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.

MT Safety:
It is not safe to call DDSCondition::set_handler, DDSCondition::get_handler or DDSCondition::dispatch concurrently.
Parameters
handlerThe DDSConditionHandler to be called by DDSCondition::dispatch. If this parameter is null, an no-op handler implemenation will be set.
virtual DDSConditionHandler* DDSCondition::get_handler ( )
virtual

Returns the registered DDSConditionHandler.

If no DDSConditionHandler is registered, this operation returns a no-op DDSConditionHandler implementation.

virtual void DDSCondition::dispatch ( )
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.


RTI Connext Traditional C++ API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc