CoreDX DDS Modern C++ API
Public Member Functions | List of all members
dds::sub::SampleInfo Class Reference

This class implements the DDS SampleInfo. More...

Public Member Functions

const dds::core::Time timestamp () const
 Access the timestamp of the sample.
 
const dds::sub::status::DataState state () const
 Access the state of the sample.
 
dds::sub::GenerationCount generation_count () const
 Access the generation count of the sample.
 
dds::sub::Rank rank () const
 Access the rank of the sample.
 
bool valid () const
 Indicates if the sample data is valid. More...
 
dds::core::InstanceHandle instance_handle () const
 Access the handle identifying the instance containing this sample.
 
dds::core::InstanceHandle publication_handle () const
 Access the handle identifying the source of the data.
 

Detailed Description

This class implements the DDS SampleInfo.

Member Function Documentation

◆ valid()

bool dds::sub::SampleInfo::valid ( ) const

Indicates if the sample data is valid.

For example, the sample data may not be valid in the case of unregistered or disposed instance state.


© 2009-2020 Twin Oaks Computing, Inc
Castle Rock, CO 80104
All rights reserved.