#include <DWPeriodicMonitorImpl.h>
Inheritance diagram for OpenDDS::DCPS::DWPeriodicMonitorImpl:
Public Member Functions | |
DWPeriodicMonitorImpl (DataWriterImpl *dw, OpenDDS::DCPS::DataWriterPeriodicReportDataWriter_ptr dw_per_writer) | |
virtual | ~DWPeriodicMonitorImpl () |
virtual void | report () |
Private Attributes | |
DataWriterImpl * | dw_ |
OpenDDS::DCPS::DataWriterPeriodicReportDataWriter_var | dw_per_writer_ |
Definition at line 22 of file DWPeriodicMonitorImpl.h.
OpenDDS::DCPS::DWPeriodicMonitorImpl::DWPeriodicMonitorImpl | ( | DataWriterImpl * | dw, | |
OpenDDS::DCPS::DataWriterPeriodicReportDataWriter_ptr | dw_per_writer | |||
) |
Definition at line 18 of file DWPeriodicMonitorImpl.cpp.
00020 : dw_(dw), 00021 dw_per_writer_(DataWriterPeriodicReportDataWriter::_duplicate(dw_per_writer)) 00022 { 00023 }
OpenDDS::DCPS::DWPeriodicMonitorImpl::~DWPeriodicMonitorImpl | ( | ) | [virtual] |
void OpenDDS::DCPS::DWPeriodicMonitorImpl::report | ( | ) | [virtual] |
Implements OpenDDS::DCPS::Monitor.
Definition at line 30 of file DWPeriodicMonitorImpl.cpp.
References dw_, dw_per_writer_, OpenDDS::DCPS::DataWriterImpl::get_publication_id(), and DDS::HANDLE_NIL.
00030 { 00031 if (!CORBA::is_nil(this->dw_per_writer_.in())) { 00032 DataWriterPeriodicReport report; 00033 report.dw_id = dw_->get_publication_id(); 00034 //report.data_dropped_count = dw_-> 00035 //report.data_delivered_count = dw_-> 00036 //report.control_dropped_count = dw_-> 00037 //report.control_delivered_count = dw_-> 00038 //report.associations = dw_-> 00039 this->dw_per_writer_->write(report, DDS::HANDLE_NIL); 00040 } 00041 }
OpenDDS::DCPS::DataWriterPeriodicReportDataWriter_var OpenDDS::DCPS::DWPeriodicMonitorImpl::dw_per_writer_ [private] |