![]() |
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 | |
GroupData () | |
GroupData (const dds::core::ByteSeq &sequence) | |
GroupData (const GroupData &other) | |
GroupData (const uint8_t *value_begin, const uint8_t *value_end) | |
const uint8_t * | begin () const |
const uint8_t * | end () const |
bool | operator!= (const Value &other) const |
D * | operator-> () |
const D * | operator-> () const |
bool | operator== (const Value &other) const |
GroupData & | value (const dds::core::ByteSeq &sequence) |
template<typename OCTET_ITER > | |
GroupData & | value (OCTET_ITER begin, OCTET_ITER end) |
const dds::core::ByteSeq | value () const |
This QosPolicy allows the application to attach additional information to a Publisher or Subscriber Entity. This information is distributed with the BuiltinTopics.
Value | Meaning | Concerns | RxO | Changeable |
---|---|---|---|---|
A sequence of octects: value | User data not known by the middleware, but distributed by means of built-in topics. The default value is an empty (zero- sized) sequence. | Publisher, Subscriber | No | Yes |
The purpose of this QoS is to allow the application to attach additional information to the created Publisher or Subscriber. The value of the GROUP_DATA is available to the application on the DataReader and DataWriter entities and is propagated by means of the built-in topics.
This QoS can be used by an application combination with the DataReaderListener and DataWriterListener to implement matching policies similar to those of the PARTITION QoS except the decision can be made based on an application-defined policy.
Definition at line 119 of file CorePolicy.hpp.
dds::core::policy::GroupData::GroupData | ( | ) |
Creates a GroupData QoS instance
Definition at line 123 of file CorePolicyImpl.hpp.
|
explicit |
Creates a GroupData QoS instance
sequence | the sequence of octets representing the GroupData |
Definition at line 126 of file CorePolicyImpl.hpp.
dds::core::policy::GroupData::GroupData | ( | const GroupData & | other | ) |
Copies a GroupData QoS instance
other | the GroupData QoS instance to copy |
Definition at line 129 of file CorePolicyImpl.hpp.
dds::core::policy::GroupData::GroupData | ( | const uint8_t * | value_begin, |
const uint8_t * | value_end | ||
) |
Creates a GroupData QoS instance
value_begin | a pointer to the beginning of a sequence of octets |
value_end | a pointer to the end of a sequence of octets |
Definition at line 132 of file CorePolicyImpl.hpp.
const uint8_t * dds::core::policy::GroupData::begin | ( | ) | const |
Gets a pointer to the first octet in the sequence
Definition at line 175 of file CorePolicyImpl.hpp.
const uint8_t * dds::core::policy::GroupData::end | ( | ) | const |
Gets a pointer to the last octet in the sequence
Definition at line 190 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 |
GroupData & dds::core::policy::GroupData::value | ( | const dds::core::ByteSeq & | sequence | ) |
Set the sequence
sequence | a sequence of octets |
Definition at line 145 of file CorePolicyImpl.hpp.
GroupData & dds::core::policy::GroupData::value | ( | OCTET_ITER | begin, |
OCTET_ITER | end | ||
) |
Set the sequence
begin | an iterator pointing to the beginning of a sequence of octets |
end | an iterator pointing to the end of a sequence of octets |
Definition at line 154 of file CorePolicyImpl.hpp.
const dds::core::ByteSeq dds::core::policy::GroupData::value | ( | ) | const |