OpenDDS::DCPS::DWPeriodicMonitorImpl Class Reference

#include <DWPeriodicMonitorImpl.h>

Inheritance diagram for OpenDDS::DCPS::DWPeriodicMonitorImpl:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::DWPeriodicMonitorImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DWPeriodicMonitorImpl (DataWriterImpl *dw, OpenDDS::DCPS::DataWriterPeriodicReportDataWriter_ptr dw_per_writer)
virtual ~DWPeriodicMonitorImpl ()
virtual void report ()

Private Attributes

DataWriterImpldw_
OpenDDS::DCPS::DataWriterPeriodicReportDataWriter_var dw_per_writer_

Detailed Description

Definition at line 22 of file DWPeriodicMonitorImpl.h.


Constructor & Destructor Documentation

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]

Definition at line 25 of file DWPeriodicMonitorImpl.cpp.

00026 {
00027 }


Member Function Documentation

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 }


Member Data Documentation

DataWriterImpl* OpenDDS::DCPS::DWPeriodicMonitorImpl::dw_ [private]

Definition at line 30 of file DWPeriodicMonitorImpl.h.

Referenced by report().

OpenDDS::DCPS::DataWriterPeriodicReportDataWriter_var OpenDDS::DCPS::DWPeriodicMonitorImpl::dw_per_writer_ [private]

Definition at line 31 of file DWPeriodicMonitorImpl.h.

Referenced by report().


The documentation for this class was generated from the following files:
Generated on Fri Feb 12 20:06:42 2016 for OpenDDS by  doxygen 1.4.7