testtypes.bsd 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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="array1Size" TypeName="opc:UInt32" />
  53. <opc:Field Name="array1" TypeName="opc:Double" LengthField="array1Size" />
  54. </opc:StructuredType>
  55. </opc:TypeDictionary>