-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsoftlogger.dtd
64 lines (53 loc) · 2.47 KB
/
softlogger.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!--
Copyright (c) 2013 Charles Hache. All rights reserved.
This file is part of the softlogger project.
softlogger is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
softlogger is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with softlogger. If not, see <http://www.gnu.org/licenses/>.
Contributors:
Charles Hache - initial API and implementation
-->
<!ELEMENT softlogger (name,defaultScanRate,outputModule*,channel*)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT defaultScanRate (#PCDATA)>
<!ELEMENT runnableModule (configValue|configElement)*>
<!ATTLIST runnableModule class CDATA #REQUIRED>
<!ELEMENT configValue (#PCDATA)>
<!ATTLIST configValue name CDATA #REQUIRED>
<!ELEMENT configElement (configValue|configElement)*>
<!ELEMENT outputModule (configValue|configElement)*>
<!ATTLIST outputModule class CDATA #REQUIRED>
<!ELEMENT channel (defaultScanRate?,retryInterval?,(tcp|serial),outputModule*,device*)>
<!ELEMENT retryInterval (#PCDATA)>
<!ELEMENT tcp (host,port?)>
<!ELEMENT host (#PCDATA)>
<!ELEMENT port (#PCDATA)>
<!ELEMENT serial (comport,baud,echo?,requestDelay?)>
<!ELEMENT comport (#PCDATA)>
<!ELEMENT baud (#PCDATA)>
<!ELEMENT echo (#PCDATA)>
<!ELEMENT requestDelay (#PCDATA)>
<!ELEMENT device (unitId,description?,defaultScanRate?,retryInterval?,maxRetryInterval?,outputModule*,(configRegister|dataRegister)*)>
<!ELEMENT unitId (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT maxRetryInterval (#PCDATA)>
<!ELEMENT configRegister (fieldName,scanRate?,registerAddress,size?,value)>
<!ELEMENT fieldName (#PCDATA)>
<!ELEMENT scanRate (#PCDATA)>
<!ATTLIST scanRate sampling (latchon|latchoff|latest|accumulate|sum|average|mean) "average">
<!ELEMENT registerAddress (#PCDATA)>
<!ELEMENT size (#PCDATA)>
<!ATTLIST size type (s|u|f|int|uint|float|signed|unsigned) "unsigned">
<!ATTLIST size reverse (t|true|f|false) "false">
<!ELEMENT value (#PCDATA)>
<!ELEMENT dataRegister (fieldName,scanRate?,registerAddress,size?,dataFunction?,guid)>
<!ELEMENT dataFunction (#PCDATA)>
<!ATTLIST dataFunction class CDATA #REQUIRED>
<!ELEMENT guid (#PCDATA)>