ua_constants.py 1.8 KB

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