Actions
C++TESK templates XML representation¶
XML file describes model adapter and contains the following components:
1. Adapter description. Global adapter section.
<adapter> adapter description </adapter>
"Adapter description" is and interface description and mapping description
2. Interface description. Describes adapter''s interface.
<interface name = "name" type = "type"> messagetype description </interface>
3. Messagetype description.
<messagetype name = "name"> messagefieldlist description </messagetype>
4. Messagefieldlist description.
<messagefields> messagefields descriptions </messagefields>
5. Messagefield description.
<messagefield name = "name" capacity = "capacity" mask = "mask"/>
6. Mapping description.
<mapping> groups descriptions </mapping>
7. Group description.
<group> signals description, messagefield list description </group>
8. Signal description.
<signal name = "name" capacity = "capacity"/>
Complete file example:
<adapter>
<interface name = "interface" type = "input">
<messagetype name = "messageType">
<messagefields>
<messagefield name = "messagefield1" capacity = "1" mask = "0xFFFF"/>
</messagefields>
</messagetype>
</interface>
<mapping>
<group>
<mappedsignals>
<signal name = "signal 1" capacity = "8"/>
<signal name = "signal 2" capacity = "1"/>
</mappedsignals>
<messagefields>
<messagefield name = "messagefield1" capacity = "1" mask = "0xFFFF"/>
</messagefields>
</group>
</mapping>
</adapter>
Updated by Sergey Smolov about 10 years ago · 1 revisions