MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / _get_enum_values

Function _get_enum_values

opcua/common/structures.py:356–361  ·  view source on GitHub ↗
(name, node)

Source from the content-addressed store, hash-verified

354
355
356def _get_enum_values(name, node):
357 def_node = node.get_child("0:EnumValues")
358 val = def_node.get_value()
359 c = EnumType(name)
360 c.fields = [EnumeratedValue(enumval.DisplayName.Text, enumval.Value) for enumval in val]
361 return c
362
363
364def _get_enum_strings(name, node):

Callers 1

load_enumsFunction · 0.85

Calls 4

EnumTypeClass · 0.85
EnumeratedValueClass · 0.85
get_childMethod · 0.80
get_valueMethod · 0.80

Tested by

no test coverage detected