Represents an enum (set of constants) More...
Public Member Functions | |
DDS::ReturnCode_t | set_num_constants (int32_t n) |
DDS::ReturnCode_t | set_constant (int32_t n, const char *name, uint32_t val) |
DDS::ReturnCode_t | set_value (uint32_t c) |
int32_t | get_num_constants (void) |
EnumConstant * | get_constant (int32_t index) |
EnumConstant * | get_constant_by_name (const char *name) |
EnumConstant * | get_constant_by_value (uint32_t val) |
uint32_t | get_value (void) |
Public Member Functions inherited from CDX::DynamicType | |
virtual TypeCodeKind | get_type () |
Provides access to the 'type' of the DynamicType object. Applicable to any DynamicType. More... | |
Represents an enum (set of constants)
EnumConstant* CDX::EnumDynamicType::get_constant | ( | int32_t | index | ) |
Get the name and value of a specific enumerator constant defined in this collection
EnumConstant* CDX::EnumDynamicType::get_constant_by_name | ( | const char * | name | ) |
Get the name and value of a specific enumerator by name
EnumConstant* CDX::EnumDynamicType::get_constant_by_value | ( | uint32_t | val | ) |
Get the name and value of a specific enumerator by value
int32_t CDX::EnumDynamicType::get_num_constants | ( | void | ) |
Get the number of constants defined in this enumerator collection
uint32_t CDX::EnumDynamicType::get_value | ( | void | ) |
Get the value of an instance of the enumerator collection
DDS::ReturnCode_t CDX::EnumDynamicType::set_constant | ( | int32_t | n, |
const char * | name, | ||
uint32_t | val | ||
) |
Set the 'name' and 'val' of a specific enum constant
DDS::ReturnCode_t CDX::EnumDynamicType::set_num_constants | ( | int32_t | n | ) |
Set the number of constants in the enumerator collection
DDS::ReturnCode_t CDX::EnumDynamicType::set_value | ( | uint32_t | c | ) |
Set the value of an instance of the enumerator collection