-
Key: DDS11-55
-
Legacy Issue Number: 8393
-
Status: closed
-
Source: Real-Time Innovations ( Dr. Gerardo Pardo-Castellote, Ph.D.)
-
Summary:
A number of operations in the specification have a void return type. However, without a specified return type, an implementation cannot indicate that an error occurred.
Proposed Resolution:
The following methods currently return void and should return ReturnCode_t instead.
· GuardCondition::set_trigger_value
· DomainParticipant::get_default_publisher_qos
· DomainParticipant::get_default_subscriber_qos
· DomainParticipant::get_default_topic_qos
· DomainParticipant::assert_liveliness
· DomainParticipantFactory::get_default_participant_qos
· Publisher::get_default_datawriter_qos
· Subscriber::get_default_subscriber_qos
· DataWriter::assert_liveliness
· Subscriber::notify_datareaders
(The get_qos operations on each concrete Entity type are show to return void in the IDL PSM but a list of QoS policies in the PIM. That inconsistency is addressed in another issue.)Proposed Revised Text:
In the GuardCondition Class table in 2.1.2.1.8, the void return type of set_trigger_value should be replaced by ReturnCode_t. The return type of that operation must be similarly changed in the IDL PSM in 2.2.3.
In the DomainParticipant Class table in 2.1.2.2.1, the void return type of the get_default_*_qos operations and the assert_liveliness operation should be replaced by ReturnCode_t. The return types of those operations should be similarly changed in the IDL PSM in 2.2.3.
In the Publisher Class table in 2.1.2.4.1, the void return type of get_default_datawriter_qos should be replaced by ReturnCode_t. The return type of that operation must be similarly changed in the IDL PSM in 2.2.3.
In the DataWriter Class table in 2.1.2.4.2, the void return type of assert_liveliness should be replaced by ReturnCode_t. The return type of that operation must be similarly changed in the IDL PSM in 2.2.3.
In the Subscriber Class table in 2.1.2.5.2, the void return type of get_default_datareader_qos and notify_datareaders should be replaced by ReturnCode_t. The return type of those operations must be similarly changed in the IDL PSM in 2.2.3. -
Reported: DDS 1.0 — Tue, 14 Dec 2004 05:00 GMT
-
Disposition: Resolved — DDS 1.1
-
Disposition Summary:
No Data Available
-
Updated: Fri, 6 Mar 2015 20:58 GMT
DDS11 — R#114) Operations should not return void
- Key: DDS11-55
- OMG Task Force: Data Distribution Service RTF