ContentFilteredTopic

Content Filtered Topic not really filtered?

Hello everyone,

I am testing a simple application with ContentFilteredTopic.

The DataWriter basically just send random numbers (possible temperature values in a range 0-100) and the DataReader receives them with a filter: it should only receive values less than 20 and greater than 80.

Apparently the application works fine. If i run publisher and subscriber I actually see what I expect and the temperature values are filtered as I want.

Stateful ContentFilteredTopics?

ContentFilteredTopics seem very appropriate for message / event type data, such as the "news story feed" example provided in the documentation.

However, when used on a topic representing a set of objects, there seems to be no way to affirm that an object with previously received instance samples has since left the filter criteria, and that the previously receieved samples are now inconsistent with the current state of the object.

Filter syntax to filter out everything but 1 data field ?

Hi,

Let's assume I have a topic A whom data type is like: 

struct myStruct {

        short A_id; //@key

        string A_title;

        string A_data; };

 

Then I create 3 instances and I write them from my Datawriter to my Datareader.

Specifying ContentFilteredTopics in an XML file

My question is how would I specify a ContentFilteredTopic within the USER_PROFILE_QOS.xml file that I am declaring all of my topics, writers, and readers etc. I found in RTI_CoreLibrariesAndUtilities_QoS_Reference_Guide.pdf about how you can add content filters to DataReaders and subscribers and everything, however this does not appear to produce a ContentFilteredTopic anywhere. As such, how would I update the expression parameter's dynamically? 

Subscribe to RSS - ContentFilteredTopic