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...