![]() |
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 | |
StringTopicType () | |
StringTopicType (const std::string &data) | |
const std::string & | data () const |
void | data (const std::string &data) |
operator std::string & () const | |
bool | operator!= (const Value &other) const |
D * | operator-> () |
const D * | operator-> () const |
bool | operator== (const Value &other) const |
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 strings.
Definition at line 89 of file BuiltinTopicTypes.hpp.
dds::core::StringTopicType::StringTopicType | ( | ) |
Creates topic type with an empty data string.
dds::core::StringTopicType::StringTopicType | ( | const std::string & | data | ) |
Creates topic type with the given string.
const std::string& dds::core::StringTopicType::data | ( | ) | const |
Getter function for the internal data string.
void dds::core::StringTopicType::data | ( | const std::string & | data | ) |
Setter function for the internal data string.
dds::core::StringTopicType::operator std::string & | ( | ) | const |
Conversion operator to a 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 |