QueryCondition Atomic

2 posts / 0 new
Last post
jcwenger's picture
Offline
Last seen: 3 years 8 months ago
Joined: 01/21/2015
Posts: 11
Obtain samples which do not match a querycondition

I have a FooDataReader with a QueryCondition.  Foo is keyed.  

During my read loop, I need to process all NOT_READ samples, and perform a database update if the last received sample of Foo matches the QueryCondition, and a database deletion if the last read sample does NOT match the queryCondition.

The first case is easy.  I call read_w_condition(), and the condition specifies DDS_NOT_READ_SAMPLE_STATE.

The latter case is messy...

Subscribe to RSS - QueryCondition Atomic