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

Class Field

schemas/generate_model.py:71–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71class Field(object):
72 def __init__(self):
73 self.name = None
74 self.uatype = None
75 self.length = None
76 self.sourcetype = None
77 self.switchfield = None
78 self.switchvalue = None
79 self.bitlength = 1
80
81 def __str__(self):
82 return f'Field {self.name}({self.uatype})'
83
84 __repr__ = __str__
85
86 def is_native_type(self):
87 if self.uatype in (
88 'Char', 'SByte', 'Int16', 'Int32', 'Int64', 'UInt16', 'UInt32', 'UInt64', 'Boolean', 'Double', 'Float', 'Byte',
89 'String', 'CharArray', 'ByteString', 'DateTime'):
90 return True
91 return False
92
93
94class Enum(object):

Callers 4

add_encoding_fieldFunction · 0.70
split_requestsFunction · 0.70
add_extension_objectMethod · 0.70
parse_structMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected