CoreDX DDS C++ Reference Manual
Public Member Functions | List of all members
CDX::EnumDynamicType Class Reference

Represents an enum (set of constants) More...

Inheritance diagram for CDX::EnumDynamicType:
CDX::DynamicType

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)
 
EnumConstantget_constant (int32_t index)
 
EnumConstantget_constant_by_name (const char *name)
 
EnumConstantget_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...
 

Detailed Description

Represents an enum (set of constants)

Member Function Documentation

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


© 2009-2017 Twin Oaks Computing, Inc
Castle Rock, CO 80108
All rights reserved.