UA Server SDK C++ Bundle  1.4.0.258
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
UaEnumDefinition Class Reference

The class describes an Enumeration. More...

#include <uaenumdefinition.h>

Public Member Functions

 UaEnumDefinition (const UaEnumDefinition &other)
 
UaEnumDefinitionoperator= (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...
 

Detailed Description

The class describes an Enumeration.

You can access the EnumValues by index or by value.

Member Function Documentation

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.


The documentation for this class was generated from the following files: