00001 /* 00002 * 00003 * 00004 * Distributed under the OpenDDS License. 00005 * See: http://www.opendds.org/license.html 00006 */ 00007 00008 #ifndef OPENDDS_DCPS_TOPICMONITOR_IMPL_H 00009 #define OPENDDS_DCPS_TOPICMONITOR_IMPL_H 00010 00011 #include "monitor_export.h" 00012 #include "dds/DCPS/MonitorFactory.h" 00013 #include "monitorTypeSupportImpl.h" 00014 00015 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00016 #pragma once 00017 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00018 00019 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 00020 00021 namespace OpenDDS { 00022 namespace DCPS { 00023 00024 class TopicMonitorImpl : public Monitor { 00025 public: 00026 TopicMonitorImpl(TopicImpl* topic, 00027 OpenDDS::DCPS::TopicReportDataWriter_ptr topic_writer); 00028 virtual ~TopicMonitorImpl(); 00029 virtual void report(); 00030 00031 private: 00032 TopicImpl* topic_; 00033 OpenDDS::DCPS::TopicReportDataWriter_var topic_writer_; 00034 }; 00035 00036 } // namespace DCPS 00037 } // namespace OpenDDS 00038 00039 OPENDDS_END_VERSIONED_NAMESPACE_DECL 00040 00041 #endif /* OPENDDS_DCPS_TOPICMONITOR_IMPL_H */