Download XML-Based Application Creation Getting Started Guide

Transcript
XML Tags for Configuring Entities
Table 4.12 DataReader Tags
Tags within
<data_reader>
Description
Number of
Tags Allowed
Enables the creation of DataReader with this configuration
from a ContentFilteredTopic.
Attributes:
<filter>
name
Name of the ContentFilteredTopic. The ContentFilteredTopic will be associated with the
same Topic referenced by the containing 0 or 1
<data_reader>
filter_kind
Specifies which ContentFilter to use. It
defaults to the builtin.sql filter.
The <filter> tag within a <data_reader> enables content filtering. It causes the corresponding
DataReader to be created from a ContentFilteredTopic with the specified filter
characteristics.
Table 4.13 Filter Tag
Tags within
<filter >
<expression>
Description
Filter expression
Number of
Tags Allowed
0 or 1
List of parameters. Parameters are specified using
<param> tags.
The maximum number of parameters is 100.
<parameter_list>
<parameter_list>
<param>param_0</param>
<param>param_1</param>
...
</parameter_list>
0 or 1
For example:
<domain_participant name="MyParticipant"
domain_ref="MyDomainLibrary::MyDomain">
<publisher name="MyPublisher">
<data_writer name="MyWriter" topic_ref="MyTopic"/>
</publisher>
<subscriber name="MySubscriber">
<data_reader name="MyReader"
topic_ref="MyTopic">
<filter name="MyFilter" kind="builtin.sql">
<expression> count > %0 </expression>
<parameter_list>
<param>10<param>
</parameter_list>
</filter>
</data_reader>
</subscriber>
</domain_participant>
4-11