CoreDX DDS
C++ Reference Manual

DDS::EnumDynamicType Class Reference
[CoreDX DDS DynamicTypes]

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

Inheritance diagram for DDS::EnumDynamicType:
DDS::DynamicType

List of all members.

Public Member Functions

ReturnCode_t set_num_constants (int32_t n)
ReturnCode_t set_constant (int32_t n, const char *name, uint32_t val)
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)

Detailed Description

Represents an enum (set of constants).


Member Function Documentation

EnumConstant* DDS::EnumDynamicType::get_constant ( int32_t  index  ) 

Get the name and value of a specific enumerator constant defined in this collection

EnumConstant* DDS::EnumDynamicType::get_constant_by_name ( const char *  name  ) 

Get the name and value of a specific enumerator by name

EnumConstant* DDS::EnumDynamicType::get_constant_by_value ( uint32_t  val  ) 

Get the name and value of a specific enumerator by value

int32_t DDS::EnumDynamicType::get_num_constants ( void   ) 

Get the number of constants defined in this enumerator collection

uint32_t DDS::EnumDynamicType::get_value ( void   ) 

Get the value of an instance of the enumerator collection

ReturnCode_t DDS::EnumDynamicType::set_constant ( int32_t  n,
const char *  name,
uint32_t  val 
)

Set the 'name' and 'val' of a specific enum constant

ReturnCode_t DDS::EnumDynamicType::set_num_constants ( int32_t  n  ) 

Set the number of constants in the enumerator collection

ReturnCode_t DDS::EnumDynamicType::set_value ( uint32_t  c  ) 

Set the value of an instance of the enumerator collection

 All Classes Files Functions Variables

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