Class astutedds::xtypes::DynamicData
ClassList > astutedds > xtypes > DynamicData
Runtime data container with type information. More...
#include <dynamic_data.hpp>
Public Functions
| Type | Name |
|---|---|
| DynamicData (std::shared_ptr< DynamicType > type) |
|
| void | clear_all () |
| void | clear_member (uint32_t member_id) |
| bool | get_bool_value (uint32_t member_id) const |
| char | get_char8_value (uint32_t member_id) const |
| std::shared_ptr< DynamicData > | get_complex_value (uint32_t member_id) const |
| float | get_float32_value (uint32_t member_id) const |
| double | get_float64_value (uint32_t member_id) const |
| int16_t | get_int16_value (uint32_t member_id) const |
| int32_t | get_int32_value (uint32_t member_id) const |
| int64_t | get_int64_value (uint32_t member_id) const |
| int8_t | get_int8_value (uint32_t member_id) const |
| std::string | get_string_value (uint32_t member_id) const |
| std::shared_ptr< DynamicType > | get_type () const |
| uint16_t | get_uint16_value (uint32_t member_id) const |
| uint32_t | get_uint32_value (uint32_t member_id) const |
| uint64_t | get_uint64_value (uint32_t member_id) const |
| uint8_t | get_uint8_value (uint32_t member_id) const |
| bool | is_member_present (uint32_t member_id) const |
| void | set_bool_value (uint32_t member_id, bool value) |
| void | set_char8_value (uint32_t member_id, char value) |
| void | set_complex_value (uint32_t member_id, std::shared_ptr< DynamicData > value) |
| void | set_float32_value (uint32_t member_id, float value) |
| void | set_float64_value (uint32_t member_id, double value) |
| void | set_int16_value (uint32_t member_id, int16_t value) |
| void | set_int32_value (uint32_t member_id, int32_t value) |
| void | set_int64_value (uint32_t member_id, int64_t value) |
| void | set_int8_value (uint32_t member_id, int8_t value) |
| void | set_string_value (uint32_t member_id, const std::string & value) |
| void | set_uint16_value (uint32_t member_id, uint16_t value) |
| void | set_uint32_value (uint32_t member_id, uint32_t value) |
| void | set_uint64_value (uint32_t member_id, uint64_t value) |
| void | set_uint8_value (uint32_t member_id, uint8_t value) |
| ~DynamicData () = default |
Detailed Description
Allows getting/setting values without compile-time type knowledge.
Public Functions Documentation
function DynamicData
explicit astutedds::xtypes::DynamicData::DynamicData (
std::shared_ptr< DynamicType > type
)
function clear_all
void astutedds::xtypes::DynamicData::clear_all ()
function clear_member
void astutedds::xtypes::DynamicData::clear_member (
uint32_t member_id
)
function get_bool_value
bool astutedds::xtypes::DynamicData::get_bool_value (
uint32_t member_id
) const
function get_char8_value
char astutedds::xtypes::DynamicData::get_char8_value (
uint32_t member_id
) const
function get_complex_value
std::shared_ptr< DynamicData > astutedds::xtypes::DynamicData::get_complex_value (
uint32_t member_id
) const
function get_float32_value
float astutedds::xtypes::DynamicData::get_float32_value (
uint32_t member_id
) const
function get_float64_value
double astutedds::xtypes::DynamicData::get_float64_value (
uint32_t member_id
) const
function get_int16_value
int16_t astutedds::xtypes::DynamicData::get_int16_value (
uint32_t member_id
) const
function get_int32_value
int32_t astutedds::xtypes::DynamicData::get_int32_value (
uint32_t member_id
) const
function get_int64_value
int64_t astutedds::xtypes::DynamicData::get_int64_value (
uint32_t member_id
) const
function get_int8_value
int8_t astutedds::xtypes::DynamicData::get_int8_value (
uint32_t member_id
) const
function get_string_value
std::string astutedds::xtypes::DynamicData::get_string_value (
uint32_t member_id
) const
function get_type
inline std::shared_ptr< DynamicType > astutedds::xtypes::DynamicData::get_type () const
function get_uint16_value
uint16_t astutedds::xtypes::DynamicData::get_uint16_value (
uint32_t member_id
) const
function get_uint32_value
uint32_t astutedds::xtypes::DynamicData::get_uint32_value (
uint32_t member_id
) const
function get_uint64_value
uint64_t astutedds::xtypes::DynamicData::get_uint64_value (
uint32_t member_id
) const
function get_uint8_value
uint8_t astutedds::xtypes::DynamicData::get_uint8_value (
uint32_t member_id
) const
function is_member_present
bool astutedds::xtypes::DynamicData::is_member_present (
uint32_t member_id
) const
function set_bool_value
void astutedds::xtypes::DynamicData::set_bool_value (
uint32_t member_id,
bool value
)
function set_char8_value
void astutedds::xtypes::DynamicData::set_char8_value (
uint32_t member_id,
char value
)
function set_complex_value
void astutedds::xtypes::DynamicData::set_complex_value (
uint32_t member_id,
std::shared_ptr< DynamicData > value
)
function set_float32_value
void astutedds::xtypes::DynamicData::set_float32_value (
uint32_t member_id,
float value
)
function set_float64_value
void astutedds::xtypes::DynamicData::set_float64_value (
uint32_t member_id,
double value
)
function set_int16_value
void astutedds::xtypes::DynamicData::set_int16_value (
uint32_t member_id,
int16_t value
)
function set_int32_value
void astutedds::xtypes::DynamicData::set_int32_value (
uint32_t member_id,
int32_t value
)
function set_int64_value
void astutedds::xtypes::DynamicData::set_int64_value (
uint32_t member_id,
int64_t value
)
function set_int8_value
void astutedds::xtypes::DynamicData::set_int8_value (
uint32_t member_id,
int8_t value
)
function set_string_value
void astutedds::xtypes::DynamicData::set_string_value (
uint32_t member_id,
const std::string & value
)
function set_uint16_value
void astutedds::xtypes::DynamicData::set_uint16_value (
uint32_t member_id,
uint16_t value
)
function set_uint32_value
void astutedds::xtypes::DynamicData::set_uint32_value (
uint32_t member_id,
uint32_t value
)
function set_uint64_value
void astutedds::xtypes::DynamicData::set_uint64_value (
uint32_t member_id,
uint64_t value
)
function set_uint8_value
void astutedds::xtypes::DynamicData::set_uint8_value (
uint32_t member_id,
uint8_t value
)
function ~DynamicData
astutedds::xtypes::DynamicData::~DynamicData () = default
The documentation for this class was generated from the following file include/astutedds/xtypes/dynamic_data.hpp