C++TESK templates XML representation » History » Version 1
Sergey Smolov, 12/12/2014 05:22 PM
1 | 1 | Sergey Smolov | h1. C++TESK templates XML representation |
---|---|---|---|
2 | |||
3 | XML file describes model adapter and contains the following components: |
||
4 | |||
5 | 1. Adapter description. Global adapter section. |
||
6 | <pre><code class="xml"> |
||
7 | <adapter> adapter description </adapter> |
||
8 | </code></pre> |
||
9 | "Adapter description" is and interface description and mapping description |
||
10 | |||
11 | |||
12 | 2. Interface description. Describes adapter''s interface. |
||
13 | <pre><code class="xml"> |
||
14 | <interface name = "name" type = "type"> messagetype description </interface> |
||
15 | </code></pre> |
||
16 | |||
17 | |||
18 | 3. Messagetype description. |
||
19 | <pre><code class="xml"> |
||
20 | <messagetype name = "name"> messagefieldlist description </messagetype> |
||
21 | </code></pre> |
||
22 | |||
23 | |||
24 | 4. Messagefieldlist description. |
||
25 | <pre><code class="xml"> |
||
26 | <messagefields> messagefields descriptions </messagefields> |
||
27 | </code></pre> |
||
28 | |||
29 | 5. Messagefield description. |
||
30 | <pre><code class="xml"> |
||
31 | <messagefield name = "name" capacity = "capacity" mask = "mask"/> |
||
32 | </code></pre> |
||
33 | |||
34 | 6. Mapping description. |
||
35 | <pre><code class="xml"> |
||
36 | <mapping> groups descriptions </mapping> |
||
37 | </code></pre> |
||
38 | |||
39 | 7. Group description. |
||
40 | <pre><code class="xml"> |
||
41 | <group> signals description, messagefield list description </group> |
||
42 | </code></pre> |
||
43 | |||
44 | |||
45 | 8. Signal description. |
||
46 | <pre><code class="xml"> |
||
47 | <signal name = "name" capacity = "capacity"/> |
||
48 | </code></pre> |
||
49 | |||
50 | |||
51 | |||
52 | Complete file example: |
||
53 | |||
54 | <pre><code class="xml"> |
||
55 | <adapter> |
||
56 | <interface name = "interface" type = "input"> |
||
57 | |||
58 | <messagetype name = "messageType"> |
||
59 | |||
60 | <messagefields> |
||
61 | <messagefield name = "messagefield1" capacity = "1" mask = "0xFFFF"/> |
||
62 | </messagefields> |
||
63 | |||
64 | </messagetype> |
||
65 | |||
66 | </interface> |
||
67 | |||
68 | <mapping> |
||
69 | |||
70 | <group> |
||
71 | <mappedsignals> |
||
72 | <signal name = "signal 1" capacity = "8"/> |
||
73 | <signal name = "signal 2" capacity = "1"/> |
||
74 | </mappedsignals> |
||
75 | |||
76 | <messagefields> |
||
77 | <messagefield name = "messagefield1" capacity = "1" mask = "0xFFFF"/> |
||
78 | </messagefields> |
||
79 | </group> |
||
80 | |||
81 | </mapping> |
||
82 | |||
83 | </adapter> |
||
84 | </code></pre> |