UA Server SDK C++ Bundle
1.4.0.258
|
The class describes an Enumeration. More...
#include <uaenumdefinition.h>
Public Member Functions | |
UaEnumDefinition (const UaEnumDefinition &other) | |
UaEnumDefinition & | operator= (const UaEnumDefinition &other) |
void | clear () |
bool | isNull () const |
void | setDataTypeId (const UaNodeId &nodeId) |
UaNodeId | dataTypeId () const |
void | setName (const UaString &sName) |
UaString | name () const |
void | setDocumentation (const UaLocalizedText &documentation) |
UaLocalizedText | documentation () const |
void | setNamespace (const UaString &sNamespace) |
UaString | getNamespace () const |
int | childrenCount () const |
UaEnumValue | child (int i) const |
Returns the EnumValue at position i. | |
void | addChild (const UaEnumValue &newChild) |
Adds a new child. More... | |
UaEnumValue | enumValue (int iValue) const |
Returns the EnumValue with value iValue. More... | |
The class describes an Enumeration.
You can access the EnumValues by index or by value.
void UaEnumDefinition::addChild | ( | const UaEnumValue & | newChild | ) |
Adds a new child.
The children are sorted by the value.
UaEnumValue UaEnumDefinition::enumValue | ( | int | iValue | ) | const |
Returns the EnumValue with value iValue.
If the EnumDefinition does not contain an EnumValue with value iValue, and empty UaEnumValue is returned.