RTI Connext Modern C++ API
Version 6.1.1
|
A Selector class enabling the streaming API. More...
#include <TDataReader.hpp>
Public Member Functions | |
ManipulatorSelector & | operator>> (dds::sub::LoanedSamples< T > &samples) |
Streaming operator taking a LoanedSamples object. More... | |
ManipulatorSelector & | operator>> (bool(*manipulator)(ReadModeDummyType)) |
Streaming operator taking in a stream manipulator that will determine whether the samples will be read or taken. More... | |
template<typename Functor > | |
ManipulatorSelector & | operator>> (Functor f) |
Streaming operator taking in a Functor. More... | |
A Selector class enabling the streaming API.
Similar to the Selector class, the ManipulatorSelector class is used by the DataReader to compose read and take operations using the streaming operator >>.
A ManipulatorSelector has an associated DataReader and configures the behavior of the read or take operation performed by that DataReader.
The ManipulatorSelector works by using a number of functions which configure the stream:
The above functions all return functors. You do not and should not use these functors directly:
For example, to perform a read of at most 5 unread samples:
|
inline |
Streaming operator taking a LoanedSamples object.
This operator allows you to direct the outcome of a string of stream operators into a LoanedSamples object.
samples | The LoanedSamples container to fill with the read/taken samples. |
|
inline |
Streaming operator taking in a stream manipulator that will determine whether the samples will be read or taken.
The provided manipulator for this operator will be either dds::sub::read or dds::sub::take.
manipulator | Either dds::sub::read or dds::sub::take |
|
inline |
Streaming operator taking in a Functor.
There are a number of functions which return the Functors that this operator expects:
f | A Functor that is returned from one of the above functions |