![]() |
OpenSplice ISO C++ 2 DCPS
v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
The SampleInfo contains information pertaining to the associated Data value. More...
#include "SampleInfo.hpp"

Public Member Functions | |
| dds::sub::GenerationCount | generation_count () const |
| dds::core::InstanceHandle | instance_handle () const |
| bool | operator!= (const Value &other) const |
| D * | operator-> () |
| const D * | operator-> () const |
| bool | operator== (const Value &other) const |
| dds::core::InstanceHandle | publication_handle () const |
| dds::sub::Rank | rank () const |
| const dds::sub::status::DataState | state () const |
| const dds::core::Time | timestamp () const |
| bool | valid () const |
The SampleInfo contains information pertaining to the associated Data value.
The SampleInfo contains information pertaining to the associated Data value:
Definition at line 61 of file SampleInfo.hpp.
| dds::sub::GenerationCount dds::sub::SampleInfo::generation_count | ( | ) | const |
Gets the GenerationCount of the sample.
The generation counts (dds::sub::GenerationCount) for the related instance at the time the sample was received. These counters indicate the number of times the instance had become ALIVE.
Definition at line 55 of file SampleInfoImpl.hpp.
| dds::core::InstanceHandle dds::sub::SampleInfo::instance_handle | ( | ) | const |
Gets the InstanceHandle of the associated data Sample.
Definition at line 73 of file SampleInfoImpl.hpp.
|
inherited |
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:
|
inherited |
| dds::core::InstanceHandle dds::sub::SampleInfo::publication_handle | ( | ) | const |
Gets the InstanceHandle of the associated publication.
Definition at line 79 of file SampleInfoImpl.hpp.
| dds::sub::Rank dds::sub::SampleInfo::rank | ( | ) | const |
Gets the Rank of the sample.
The rank information (dds::sub::Rank).
Definition at line 61 of file SampleInfoImpl.hpp.
| const dds::sub::status::DataState dds::sub::SampleInfo::state | ( | ) | const |
Gets the DataState of the sample.
The data state (dds::sub::status::DataState).
Definition at line 49 of file SampleInfoImpl.hpp.
| const dds::core::Time dds::sub::SampleInfo::timestamp | ( | ) | const |
Gets the timestamp of the sample.
This is the timestamp provided by the DataWriter at the time the sample was produced.
Definition at line 43 of file SampleInfoImpl.hpp.
| bool dds::sub::SampleInfo::valid | ( | ) | const |
Gets the valid_data flag.
This flag indicates whether there is data associated with the sample. Some samples do not contain data, indicating only a change on the instance_state of the corresponding instance.
Definition at line 67 of file SampleInfoImpl.hpp.