|
@@ 4850-4927 (lines=78) @@
|
| 4847 |
|
__repr__ = __str__ |
| 4848 |
|
|
| 4849 |
|
|
| 4850 |
|
class ViewAttributes(FrozenClass): |
| 4851 |
|
''' |
| 4852 |
|
The attributes for a view node. |
| 4853 |
|
|
| 4854 |
|
:ivar SpecifiedAttributes: |
| 4855 |
|
:vartype SpecifiedAttributes: UInt32 |
| 4856 |
|
:ivar DisplayName: |
| 4857 |
|
:vartype DisplayName: LocalizedText |
| 4858 |
|
:ivar Description: |
| 4859 |
|
:vartype Description: LocalizedText |
| 4860 |
|
:ivar WriteMask: |
| 4861 |
|
:vartype WriteMask: UInt32 |
| 4862 |
|
:ivar UserWriteMask: |
| 4863 |
|
:vartype UserWriteMask: UInt32 |
| 4864 |
|
:ivar ContainsNoLoops: |
| 4865 |
|
:vartype ContainsNoLoops: Boolean |
| 4866 |
|
:ivar EventNotifier: |
| 4867 |
|
:vartype EventNotifier: Byte |
| 4868 |
|
''' |
| 4869 |
|
|
| 4870 |
|
ua_types = { |
| 4871 |
|
'SpecifiedAttributes': 'UInt32', |
| 4872 |
|
'DisplayName': 'LocalizedText', |
| 4873 |
|
'Description': 'LocalizedText', |
| 4874 |
|
'WriteMask': 'UInt32', |
| 4875 |
|
'UserWriteMask': 'UInt32', |
| 4876 |
|
'ContainsNoLoops': 'Boolean', |
| 4877 |
|
'EventNotifier': 'Byte', |
| 4878 |
|
} |
| 4879 |
|
|
| 4880 |
|
def __init__(self, binary=None): |
| 4881 |
|
if binary is not None: |
| 4882 |
|
self._binary_init(binary) |
| 4883 |
|
self._freeze = True |
| 4884 |
|
return |
| 4885 |
|
self.SpecifiedAttributes = 0 |
| 4886 |
|
self.DisplayName = LocalizedText() |
| 4887 |
|
self.Description = LocalizedText() |
| 4888 |
|
self.WriteMask = 0 |
| 4889 |
|
self.UserWriteMask = 0 |
| 4890 |
|
self.ContainsNoLoops = True |
| 4891 |
|
self.EventNotifier = 0 |
| 4892 |
|
self._freeze = True |
| 4893 |
|
|
| 4894 |
|
def to_binary(self): |
| 4895 |
|
packet = [] |
| 4896 |
|
packet.append(uabin.Primitives.UInt32.pack(self.SpecifiedAttributes)) |
| 4897 |
|
packet.append(self.DisplayName.to_binary()) |
| 4898 |
|
packet.append(self.Description.to_binary()) |
| 4899 |
|
packet.append(uabin.Primitives.UInt32.pack(self.WriteMask)) |
| 4900 |
|
packet.append(uabin.Primitives.UInt32.pack(self.UserWriteMask)) |
| 4901 |
|
packet.append(uabin.Primitives.Boolean.pack(self.ContainsNoLoops)) |
| 4902 |
|
packet.append(uabin.Primitives.Byte.pack(self.EventNotifier)) |
| 4903 |
|
return b''.join(packet) |
| 4904 |
|
|
| 4905 |
|
@staticmethod |
| 4906 |
|
def from_binary(data): |
| 4907 |
|
return ViewAttributes(data) |
| 4908 |
|
|
| 4909 |
|
def _binary_init(self, data): |
| 4910 |
|
self.SpecifiedAttributes = uabin.Primitives.UInt32.unpack(data) |
| 4911 |
|
self.DisplayName = LocalizedText.from_binary(data) |
| 4912 |
|
self.Description = LocalizedText.from_binary(data) |
| 4913 |
|
self.WriteMask = uabin.Primitives.UInt32.unpack(data) |
| 4914 |
|
self.UserWriteMask = uabin.Primitives.UInt32.unpack(data) |
| 4915 |
|
self.ContainsNoLoops = uabin.Primitives.Boolean.unpack(data) |
| 4916 |
|
self.EventNotifier = uabin.Primitives.Byte.unpack(data) |
| 4917 |
|
|
| 4918 |
|
def __str__(self): |
| 4919 |
|
return 'ViewAttributes(' + 'SpecifiedAttributes:' + str(self.SpecifiedAttributes) + ', ' + \ |
| 4920 |
|
'DisplayName:' + str(self.DisplayName) + ', ' + \ |
| 4921 |
|
'Description:' + str(self.Description) + ', ' + \ |
| 4922 |
|
'WriteMask:' + str(self.WriteMask) + ', ' + \ |
| 4923 |
|
'UserWriteMask:' + str(self.UserWriteMask) + ', ' + \ |
| 4924 |
|
'ContainsNoLoops:' + str(self.ContainsNoLoops) + ', ' + \ |
| 4925 |
|
'EventNotifier:' + str(self.EventNotifier) + ')' |
| 4926 |
|
|
| 4927 |
|
__repr__ = __str__ |
| 4928 |
|
|
| 4929 |
|
|
| 4930 |
|
class AddNodesItem(FrozenClass): |
|
@@ 4434-4511 (lines=78) @@
|
| 4431 |
|
__repr__ = __str__ |
| 4432 |
|
|
| 4433 |
|
|
| 4434 |
|
class MethodAttributes(FrozenClass): |
| 4435 |
|
''' |
| 4436 |
|
The attributes for a method node. |
| 4437 |
|
|
| 4438 |
|
:ivar SpecifiedAttributes: |
| 4439 |
|
:vartype SpecifiedAttributes: UInt32 |
| 4440 |
|
:ivar DisplayName: |
| 4441 |
|
:vartype DisplayName: LocalizedText |
| 4442 |
|
:ivar Description: |
| 4443 |
|
:vartype Description: LocalizedText |
| 4444 |
|
:ivar WriteMask: |
| 4445 |
|
:vartype WriteMask: UInt32 |
| 4446 |
|
:ivar UserWriteMask: |
| 4447 |
|
:vartype UserWriteMask: UInt32 |
| 4448 |
|
:ivar Executable: |
| 4449 |
|
:vartype Executable: Boolean |
| 4450 |
|
:ivar UserExecutable: |
| 4451 |
|
:vartype UserExecutable: Boolean |
| 4452 |
|
''' |
| 4453 |
|
|
| 4454 |
|
ua_types = { |
| 4455 |
|
'SpecifiedAttributes': 'UInt32', |
| 4456 |
|
'DisplayName': 'LocalizedText', |
| 4457 |
|
'Description': 'LocalizedText', |
| 4458 |
|
'WriteMask': 'UInt32', |
| 4459 |
|
'UserWriteMask': 'UInt32', |
| 4460 |
|
'Executable': 'Boolean', |
| 4461 |
|
'UserExecutable': 'Boolean', |
| 4462 |
|
} |
| 4463 |
|
|
| 4464 |
|
def __init__(self, binary=None): |
| 4465 |
|
if binary is not None: |
| 4466 |
|
self._binary_init(binary) |
| 4467 |
|
self._freeze = True |
| 4468 |
|
return |
| 4469 |
|
self.SpecifiedAttributes = 0 |
| 4470 |
|
self.DisplayName = LocalizedText() |
| 4471 |
|
self.Description = LocalizedText() |
| 4472 |
|
self.WriteMask = 0 |
| 4473 |
|
self.UserWriteMask = 0 |
| 4474 |
|
self.Executable = True |
| 4475 |
|
self.UserExecutable = True |
| 4476 |
|
self._freeze = True |
| 4477 |
|
|
| 4478 |
|
def to_binary(self): |
| 4479 |
|
packet = [] |
| 4480 |
|
packet.append(uabin.Primitives.UInt32.pack(self.SpecifiedAttributes)) |
| 4481 |
|
packet.append(self.DisplayName.to_binary()) |
| 4482 |
|
packet.append(self.Description.to_binary()) |
| 4483 |
|
packet.append(uabin.Primitives.UInt32.pack(self.WriteMask)) |
| 4484 |
|
packet.append(uabin.Primitives.UInt32.pack(self.UserWriteMask)) |
| 4485 |
|
packet.append(uabin.Primitives.Boolean.pack(self.Executable)) |
| 4486 |
|
packet.append(uabin.Primitives.Boolean.pack(self.UserExecutable)) |
| 4487 |
|
return b''.join(packet) |
| 4488 |
|
|
| 4489 |
|
@staticmethod |
| 4490 |
|
def from_binary(data): |
| 4491 |
|
return MethodAttributes(data) |
| 4492 |
|
|
| 4493 |
|
def _binary_init(self, data): |
| 4494 |
|
self.SpecifiedAttributes = uabin.Primitives.UInt32.unpack(data) |
| 4495 |
|
self.DisplayName = LocalizedText.from_binary(data) |
| 4496 |
|
self.Description = LocalizedText.from_binary(data) |
| 4497 |
|
self.WriteMask = uabin.Primitives.UInt32.unpack(data) |
| 4498 |
|
self.UserWriteMask = uabin.Primitives.UInt32.unpack(data) |
| 4499 |
|
self.Executable = uabin.Primitives.Boolean.unpack(data) |
| 4500 |
|
self.UserExecutable = uabin.Primitives.Boolean.unpack(data) |
| 4501 |
|
|
| 4502 |
|
def __str__(self): |
| 4503 |
|
return 'MethodAttributes(' + 'SpecifiedAttributes:' + str(self.SpecifiedAttributes) + ', ' + \ |
| 4504 |
|
'DisplayName:' + str(self.DisplayName) + ', ' + \ |
| 4505 |
|
'Description:' + str(self.Description) + ', ' + \ |
| 4506 |
|
'WriteMask:' + str(self.WriteMask) + ', ' + \ |
| 4507 |
|
'UserWriteMask:' + str(self.UserWriteMask) + ', ' + \ |
| 4508 |
|
'Executable:' + str(self.Executable) + ', ' + \ |
| 4509 |
|
'UserExecutable:' + str(self.UserExecutable) + ')' |
| 4510 |
|
|
| 4511 |
|
__repr__ = __str__ |
| 4512 |
|
|
| 4513 |
|
|
| 4514 |
|
class ObjectTypeAttributes(FrozenClass): |