ua_constants.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/usr/bin/env/python
  2. # -*- coding: utf-8 -*-
  3. # This Source Code Form is subject to the terms of the Mozilla Public
  4. # License, v. 2.0. If a copy of the MPL was not distributed with this
  5. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. ###
  7. ### Author: Chris Iatrou (ichrispa@core-vector.net)
  8. ### Version: rev 13
  9. ###
  10. ### This program was created for educational purposes and has been
  11. ### contributed to the open62541 project by the author. All licensing
  12. ### terms for this source is inherited by the terms and conditions
  13. ### specified for by the open62541 project (see the projects readme
  14. ### file for more information on the MPL v2 terms and restrictions).
  15. ###
  16. ### This program is not meant to be used in a production environment. The
  17. ### author is not liable for any complications arising due to the use of
  18. ### this program.
  19. ###
  20. NODE_CLASS_GENERERIC = 0
  21. NODE_CLASS_OBJECT = 1
  22. NODE_CLASS_VARIABLE = 2
  23. NODE_CLASS_METHOD = 4
  24. NODE_CLASS_OBJECTTYPE = 8
  25. NODE_CLASS_VARIABLETYPE = 16
  26. NODE_CLASS_REFERENCETYPE = 32
  27. NODE_CLASS_DATATYPE = 64
  28. NODE_CLASS_VIEW = 128
  29. # Not in OPC-UA, but exists in XML
  30. NODE_CLASS_METHODTYPE = 256
  31. ##
  32. ## Numeric codes used to encode binary type fields:
  33. ##
  34. BUILTINTYPE_TYPEID_EXTENSIONOBJECT = 1
  35. BUILTINTYPE_TYPEID_LOCALIZEDTEXT = 2
  36. BUILTINTYPE_TYPEID_EXPANDEDNODEID = 3
  37. BUILTINTYPE_TYPEID_NODEID = 4
  38. BUILTINTYPE_TYPEID_DATETIME = 5
  39. BUILTINTYPE_TYPEID_QUALIFIEDNAME = 6
  40. BUILTINTYPE_TYPEID_STATUSCODE = 7
  41. BUILTINTYPE_TYPEID_GUID = 8
  42. BUILTINTYPE_TYPEID_BOOLEAN = 9
  43. BUILTINTYPE_TYPEID_BYTE = 10
  44. BUILTINTYPE_TYPEID_SBYTE = 11
  45. BUILTINTYPE_TYPEID_INT16 = 12
  46. BUILTINTYPE_TYPEID_UINT16 = 13
  47. BUILTINTYPE_TYPEID_INT32 = 14
  48. BUILTINTYPE_TYPEID_UINT32 = 15
  49. BUILTINTYPE_TYPEID_INT64 = 16
  50. BUILTINTYPE_TYPEID_UINT64 = 17
  51. BUILTINTYPE_TYPEID_FLOAT = 18
  52. BUILTINTYPE_TYPEID_DOUBLE = 19
  53. BUILTINTYPE_TYPEID_STRING = 20
  54. BUILTINTYPE_TYPEID_XMLELEMENT = 21
  55. BUILTINTYPE_TYPEID_BYTESTRING = 22
  56. BUILTINTYPE_TYPEID_DIAGNOSTICINFO = 23