-
Key: DDSPSMC11_-70
-
Status: open
-
Source: ZettaScale Technology ( Mr. Erik Hendriks)
-
Summary:
Because the DDS-PSM-C++ abandoned the factory pattern, you now have to instantiate your own StatusCondition object, and pass the Entity to which it applies as parameter to its constructor.
However, DDS spec states that each Entity can have only one StatusCondition, and the get_statuscondition operation is responsible for that. Since with the DDS-PSM-Cxx API I can repeatedly create a StatusCondition for the same Entity, I can potentially break the Singleton pattern.
I would suggest that we state explicitly that when you instantiate multiple StatusCondition objects to the same Entity, they all end up pointing to the same Delegate.
-
Reported: DDS-PSM-Cxx 1.0 — Wed, 24 Apr 2019 12:51 GMT
-
Updated: Wed, 15 May 2019 12:22 GMT
DDSPSMC11_ — StatusCondition should have a singleton delegate
- Key: DDSPSMC11_-70
- OMG Task Force: DDS-PSM-Cxx v1.1 RTF