OpenDDS  Snapshot(2023/04/28-20:55)
DRPeriodicMonitorImpl.cpp
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
9 #include "monitorC.h"
10 #include "monitorTypeSupportImpl.h"
12 #include <dds/DdsDcpsInfrastructureC.h>
13 
15 
16 namespace OpenDDS {
17 namespace DCPS {
18 
19 
21  OpenDDS::DCPS::DataReaderPeriodicReportDataWriter_ptr dr_per_writer)
22  : dr_(dr),
23  dr_per_writer_(DataReaderPeriodicReportDataWriter::_duplicate(dr_per_writer))
24 {
25 }
26 
28 {
29 }
30 
31 void
33  if (!CORBA::is_nil(this->dr_per_writer_.in())) {
35  report.dr_id = dr_->get_guid();
36  //report.associations = dr_->
37  this->dr_per_writer_->write(report, DDS::HANDLE_NIL);
38  }
39 }
40 
41 
42 } // namespace DCPS
43 } // namespace OpenDDS
44 
OpenDDS::DCPS::DataReaderPeriodicReportDataWriter_var dr_per_writer_
const InstanceHandle_t HANDLE_NIL
T * _duplicate(T *st)
DRPeriodicMonitorImpl(DataReaderImpl *dr, OpenDDS::DCPS::DataReaderPeriodicReportDataWriter_ptr dr_per_writer)
Implements the DDS::DataReader interface.
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28
Boolean is_nil(T x)