Skip to content
Snippets Groups Projects
Commit 8cbd1cc6 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

added a first draft of an xml schema for the application variable description

parent f0f6ae89
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://github.com/ChimeraTK/ApplicationCore"
xmlns="https://github.com/ChimeraTK/ApplicationCore"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Application variable description schema for ChimeraTK ApplicationCore.
NOTE: This is a first draft version! Do not use for production!
</xsd:documentation>
</xsd:annotation>
<xsd:element name="application" type="ApplicationType"/>
<xsd:complexType name="ApplicationType">
<xsd:sequence>
<xsd:element name="directory" type="DirectoryType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
<xsd:complexType name="DirectoryType">
<xsd:sequence>
<xsd:element name="directory" type="DirectoryType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="variable" type="VariableType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
<xsd:complexType name="VariableType">
<xsd:sequence>
<xsd:element name="value_type" type="ValueType"/>
<xsd:element name="direction" type="DirectionType"/>
<xsd:element name="unit" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
<xsd:simpleType name="ValueType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="int8"/>
<xsd:enumeration value="uint8"/>
<xsd:enumeration value="int16"/>
<xsd:enumeration value="uint16"/>
<xsd:enumeration value="int32"/>
<xsd:enumeration value="uint32"/>
<xsd:enumeration value="float"/>
<xsd:enumeration value="double"/>
<xsd:enumeration value="string"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="DirectionType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="control_system_to_application"/>
<xsd:enumeration value="application_to_control_system"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment