testtypes.bsd 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--
  3. * Copyright (c) 2005-2018 The OPC Foundation, Inc. All rights reserved.
  4. *
  5. * OPC Foundation MIT License 1.00
  6. *
  7. * Permission is hereby granted, free of charge, to any person
  8. * obtaining a copy of this software and associated documentation
  9. * files (the "Software"), to deal in the Software without
  10. * restriction, including without limitation the rights to use,
  11. * copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. * copies of the Software, and to permit persons to whom the
  13. * Software is furnished to do so, subject to the following
  14. * conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be
  17. * included in all copies or substantial portions of the Software.
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  19. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  20. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  21. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  22. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  23. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  24. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  25. * OTHER DEALINGS IN THE SOFTWARE.
  26. *
  27. * The complete license agreement can be found here:
  28. * http://opcfoundation.org/License/MIT/1.00/
  29. -->
  30. <opc:TypeDictionary
  31. xmlns:opc="http://opcfoundation.org/BinarySchema/"
  32. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  33. xmlns:ua="http://opcfoundation.org/UA/"
  34. xmlns:tns="http://yourorganisation.org/test/"
  35. DefaultByteOrder="LittleEndian"
  36. TargetNamespace="http://yourorganisation.org/test/"
  37. >
  38. <opc:Import Namespace="http://opcfoundation.org/UA/" Location="Opc.Ua.BinarySchema.bsd"/>
  39. <opc:StructuredType Name="Point" BaseType="ua:ExtensionObject">
  40. <opc:Field Name="x" TypeName="opc:Double" />
  41. <opc:Field Name="y" TypeName="opc:Double" />
  42. </opc:StructuredType>
  43. <opc:StructuredType Name="NestedPoint" BaseType="ua:ExtensionObject">
  44. <opc:Field Name="x" TypeName="opc:Double" />
  45. <opc:Field Name="y" TypeName="opc:Double" />
  46. <opc:Field Name="point1" TypeName="tns:Point" />
  47. </opc:StructuredType>
  48. <opc:StructuredType Name="PointWithArray" BaseType="ua:ExtensionObject">
  49. <opc:Field Name="x" TypeName="opc:Double" />
  50. <opc:Field Name="y" TypeName="opc:Double" />
  51. <opc:Field Name="z" TypeName="opc:Double" />
  52. <opc:Field Name="NoOfArrayDimensions" TypeName="opc:Int32" />
  53. <opc:Field Name="array1" TypeName="opc:Double" LengthField="NoOfArrayDimensions" />
  54. </opc:StructuredType>
  55. <opc:StructuredType Name="PointWithPointArray" BaseType="ua:ExtensionObject">
  56. <opc:Field Name="x" TypeName="opc:Double" />
  57. <opc:Field Name="y" TypeName="opc:Double" />
  58. <opc:Field Name="z" TypeName="opc:Double" />
  59. <opc:Field Name="NoOfArrayDimensions" TypeName="opc:Int32" />
  60. <opc:Field Name="array1" TypeName="tns:Point" LengthField="NoOfArrayDimensions" />
  61. </opc:StructuredType>
  62. </opc:TypeDictionary>