![]() |
OpenSplice ISO C++ 2 DCPS
v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
#include "CorePolicy.hpp"
Public Member Functions | |
OwnershipStrength (int32_t strength=0) | |
OwnershipStrength (const OwnershipStrength &other) | |
bool | operator!= (const Value &other) const |
D * | operator-> () |
const D * | operator-> () const |
bool | operator== (const Value &other) const |
int32_t | value () const |
OwnershipStrength & | value (int32_t strength) |
This QosPolicy specifies the value of the ownership strength of a DataWriter used to determine the ownership of an instance.
Value | Meaning | Concerns | RxO | Changeable |
---|---|---|---|---|
A long: value | Specifies the value of the "strength" used to arbitrate among multiple DataWriter objects that attempt to modify the same instance of a data-object(identified by Topic + key). This policy only applies if the OWNERSHIP QoS policy is of kind EXCLUSIVE. The default value of the ownership_strength is zero. | DataWriter | N/A | Yes |
This QoS policy should be used in combination with the OWNERSHIP policy. It only applies to the situation case where OWNERSHIP kind is set to EXCLUSIVE. The value of the OWNERSHIP_STRENGTH is used to determine the ownership of a data-instance (identified by the key). The arbitration is performed by the DataReader.
Definition at line 638 of file CorePolicy.hpp.
|
explicit |
Creates an OwnershipStrength QoS instance
strength | ownership strength |
Definition at line 497 of file CorePolicyImpl.hpp.
dds::core::policy::OwnershipStrength::OwnershipStrength | ( | const OwnershipStrength & | other | ) |
Copies an OwnershipStrength QoS instance
other | the OwnershipStrength QoS instance to copy |
Definition at line 500 of file CorePolicyImpl.hpp.
|
inherited |
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:
|
inherited |
int32_t dds::core::policy::OwnershipStrength::value | ( | ) | const |
Gets the ownership strength value
Definition at line 503 of file CorePolicyImpl.hpp.
OwnershipStrength & dds::core::policy::OwnershipStrength::value | ( | int32_t | strength | ) |
Sets the ownership strength value
strength | the ownership strength value |
Definition at line 509 of file CorePolicyImpl.hpp.