![]() |
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 | |
TopicData () | |
TopicData (const dds::core::ByteSeq &sequence) | |
TopicData (const TopicData &other) | |
TopicData (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 |
TopicData & | value (const dds::core::ByteSeq &sequence) |
template<typename OCTET_ITER > | |
TopicData & | value (OCTET_ITER begin, OCTET_ITER end) |
const dds::core::ByteSeq | value () const |
This QosPolicy allows the application to attach additional information to a Topic Entity. This information is distributed with the BuiltinTopics.
Value | Meaning | Concerns | RxO | Changeable |
---|---|---|---|---|
A sequence of octets: value | A sequence of octets that holds the application topic data. By default, the sequence has length 0. | Topic | No | Yes |
The purpose of this QoS is to allow the application to attach additional information to the created Topic such that when a remote application discovers their existence it can examine the information and use it in an application-defined way. In combination with the listeners on the DataReader and DataWriter as well as by means of operations such as ignore_topic, these QoS can assist an application to extend the provided QoS.
Definition at line 197 of file CorePolicy.hpp.
dds::core::policy::TopicData::TopicData | ( | ) |
Creates a TopicData QoS instance
Definition at line 206 of file CorePolicyImpl.hpp.
|
explicit |
Creates a TopicData QoS instance
sequence | the sequence of octets representing the TopicData |
Definition at line 209 of file CorePolicyImpl.hpp.
dds::core::policy::TopicData::TopicData | ( | const TopicData & | other | ) |
Copies a TopicData QoS instance
other | the TopicData QoS instance to copy |
Definition at line 212 of file CorePolicyImpl.hpp.
dds::core::policy::TopicData::TopicData | ( | const uint8_t * | value_begin, |
const uint8_t * | value_end | ||
) |
Creates a TopicData 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 216 of file CorePolicyImpl.hpp.
const uint8_t * dds::core::policy::TopicData::begin | ( | ) | const |
Gets a pointer to the first octet in the sequence
Definition at line 252 of file CorePolicyImpl.hpp.
const uint8_t * dds::core::policy::TopicData::end | ( | ) | const |
Gets a pointer to the last octet in the sequence
Definition at line 267 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 |
TopicData & dds::core::policy::TopicData::value | ( | const dds::core::ByteSeq & | sequence | ) |
Set the sequence
sequence | a sequence of octets |
Definition at line 222 of file CorePolicyImpl.hpp.
TopicData & dds::core::policy::TopicData::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 231 of file CorePolicyImpl.hpp.
const dds::core::ByteSeq dds::core::policy::TopicData::value | ( | ) | const |