![]() |
OpenSplice ISO C++ 2 DCPS
v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
Class that is a built-in topic type that can be used to readily create Topics, DataReaders and DataWriters for this type without the need for code generation. More...
#include "BuiltinTopicTypes.hpp"

Public Member Functions | |
| KeyedStringTopicType () | |
| KeyedStringTopicType (const std::string &key, const std::string &value) | |
| const std::string & | key () const |
| void | key (const std::string &key) |
| bool | operator!= (const Value &other) const |
| D * | operator-> () |
| const D * | operator-> () const |
| bool | operator== (const Value &other) const |
| const std::string & | value () const |
| void | value (const std::string &value) |
Class that is a built-in topic type that can be used to readily create Topics, DataReaders and DataWriters for this type without the need for code generation.
This built-in type allows for easy transfer of keyed strings.
Definition at line 127 of file BuiltinTopicTypes.hpp.
| dds::core::KeyedStringTopicType::KeyedStringTopicType | ( | ) |
Creates topic type with an empty key and data strings.
| dds::core::KeyedStringTopicType::KeyedStringTopicType | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
Creates topic type with the given key and data strings.
| const std::string& dds::core::KeyedStringTopicType::key | ( | ) | const |
Getter function for the key string.
| void dds::core::KeyedStringTopicType::key | ( | const std::string & | key | ) |
Setter function for the key string.
|
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 |
| const std::string& dds::core::KeyedStringTopicType::value | ( | ) | const |
Getter function for the internal data string.
| void dds::core::KeyedStringTopicType::value | ( | const std::string & | value | ) |
Setter function for the internal data string.