|
RTI Connext Modern C++ API Version 7.1.0
|
Built-in type consisting of a variable-length array of opaque bytes and a string that is the key. More...
#include <dds/core/BuiltinTopicTypes.hpp>
Public Member Functions | |
| KeyedBytesTopicType () | |
| Creates a sample with an empty array of bytes and an empty string. More... | |
| KeyedBytesTopicType (const std::string &the_key, const std::vector< uint8_t > &the_value) | |
| Creates a sample with the given key and bytes. More... | |
| const dds::core::string & | key () const |
| Gets the key. More... | |
| dds::core::string & | key () |
| Gets the key. More... | |
| void | key (const dds::core::string &the_value) |
| Sets the key. More... | |
| operator std::vector< uint8_t > () const | |
| Conversion to std::vector by obtaining the bytes. More... | |
| std::vector< uint8_t > | value () const |
| Gets the bytes. More... | |
| void | value (const std::vector< uint8_t > &the_value) |
| Sets the bytes. More... | |
| uint8_t & | operator[] (uint32_t index) |
| Accesses the bytes by index. More... | |
| uint8_t | operator[] (uint32_t index) const |
| Accesses the bytes by index. More... | |
| int32_t | length () const |
| Get the number of bytes. More... | |
Built-in type consisting of a variable-length array of opaque bytes and a string that is the key.
|
inline |
Creates a sample with an empty array of bytes and an empty string.
|
inline |
Creates a sample with the given key and bytes.
|
inline |
Gets the key.
|
inline |
Gets the key.
|
inline |
Sets the key.
References dds::core::Value< D >::delegate().
|
inline |
Conversion to std::vector by obtaining the bytes.
References dds::core::Value< D >::delegate().
|
inline |
Gets the bytes.
References dds::core::Value< D >::delegate().
|
inline |
Sets the bytes.
References dds::core::Value< D >::delegate().
|
inline |
Accesses the bytes by index.
References dds::core::Value< D >::delegate().
|
inline |
Accesses the bytes by index.
References dds::core::Value< D >::delegate().
|
inline |
Get the number of bytes.
References dds::core::Value< D >::delegate().