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>
Detailed Description
Built-in type consisting of a variable-length array of opaque bytes and a string that is the key.
Constructor & Destructor Documentation
dds::core::KeyedBytesTopicType::KeyedBytesTopicType |
( |
| ) |
|
|
inline |
Creates a sample with an empty array of bytes and an empty string.
dds::core::KeyedBytesTopicType::KeyedBytesTopicType |
( |
const std::string & |
the_key, |
|
|
const std::vector< uint8_t > & |
the_value |
|
) |
| |
|
inline |
Creates a sample with the given key and bytes.
Member Function Documentation
dds::core::KeyedBytesTopicType::operator std::vector< uint8_t > |
( |
| ) |
const |
|
inline |
Conversion to std::vector by obtaining the bytes.
std::vector<uint8_t> dds::core::KeyedBytesTopicType::value |
( |
| ) |
const |
|
inline |
void dds::core::KeyedBytesTopicType::value |
( |
const std::vector< uint8_t > & |
the_value | ) |
|
|
inline |
uint8_t& dds::core::KeyedBytesTopicType::operator[] |
( |
uint32_t |
index | ) |
|
|
inline |
Accesses the bytes by index.
uint8_t dds::core::KeyedBytesTopicType::operator[] |
( |
uint32_t |
index | ) |
const |
|
inline |
Accesses the bytes by index.
int32_t dds::core::KeyedBytesTopicType::length |
( |
| ) |
const |
|
inline |