Struct EnumValue

Struct Documentation

struct EnumValue

Public Functions

inline int32_t ddsCompatValue() const

Public Members

std::string name
int32_t value = 0
std::optional<int32_t> dds_compat_value

Wire (CDR) value, which can differ from the logical value for DDS enums: a @value(N) annotation sets the display value to N while the value transmitted on the wire stays the sequential ordinal. An explicit IDL = N sets both. Defaults to value when unset.