RTI Connext Modern C++ API Version 7.2.0
rti::core::DataWriterShmemRefTransferModeSettings Class Reference

<<extension>> Configures aspects of the shared memory reference transfer mode related to a DataWriter More...

#include <rti/core/PolicySettings.hpp>

Public Member Functions

 DataWriterShmemRefTransferModeSettings ()
 Creates an instance with the default settings. More...
 
DataWriterShmemRefTransferModeSettingsenable_data_consistency_check (bool the_enable_data_consistency_check)
 Controls if samples can be checked for consistency. More...
 
bool enable_data_consistency_check () const
 Getter (see setter with the same name) More...
 

Detailed Description

<<extension>> Configures aspects of the shared memory reference transfer mode related to a DataWriter

It is used to configure a dds::pub::DataWriter using Zero Copy transfer over shared memory.

Properties:
RxO = N/A
Changeable = NO
QoS:
rti::core::policy::DataWriterTransferMode

Constructor & Destructor Documentation

◆ DataWriterShmemRefTransferModeSettings()

rti::core::DataWriterShmemRefTransferModeSettings::DataWriterShmemRefTransferModeSettings ( )
inline

Creates an instance with the default settings.

Member Function Documentation

◆ enable_data_consistency_check() [1/2]

DataWriterShmemRefTransferModeSettings & rti::core::DataWriterShmemRefTransferModeSettings::enable_data_consistency_check ( bool  the_enable_data_consistency_check)

Controls if samples can be checked for consistency.

When this setting is true, the dds::pub::DataWriter sends an incrementing sequence number as an inline QoS with every sample. This sequence number allows a dds::sub::DataReader to use the dds::sub::DataReader::is_data_consistent API to detect if the dds::pub::DataWriter overwrote the sample before the dds::sub::DataReader could complete processing the sample.

[default] true

◆ enable_data_consistency_check() [2/2]

bool rti::core::DataWriterShmemRefTransferModeSettings::enable_data_consistency_check ( ) const

Getter (see setter with the same name)