OpenDDS  Snapshot(2023/04/28-20:55)
DPMonitorImpl.h
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 
8 #ifndef OPENDDS_MONITOR_DPMONITORIMPL_H
9 #define OPENDDS_MONITOR_DPMONITORIMPL_H
10 
11 #include "monitor_export.h"
13 #include "monitorTypeSupportImpl.h"
14 
15 #if !defined (ACE_LACKS_PRAGMA_ONCE)
16 #pragma once
17 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 
20 
21 namespace OpenDDS {
22 namespace DCPS {
23 
24 class DPMonitorImpl : public Monitor {
25 public:
27  OpenDDS::DCPS::DomainParticipantReportDataWriter_ptr dp_writer);
28  virtual ~DPMonitorImpl();
29  virtual void report();
30 
31 private:
33  OpenDDS::DCPS::DomainParticipantReportDataWriter_var dp_writer_;
34  std::string hostname_;
35  pid_t pid_;
36 };
37 
38 } // namespace DCPS
39 } // namespace OpenDDS
40 
42 
43 #endif /* OPENDDS_DCPS_DPMONITOR_IMPL_H */
Implements the OpenDDS::DCPS::DomainParticipant interfaces.
OpenDDS::DCPS::DomainParticipantReportDataWriter_var dp_writer_
Definition: DPMonitorImpl.h:33
DomainParticipantImpl * dp_
Definition: DPMonitorImpl.h:32
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
DPMonitorImpl(DomainParticipantImpl *dp, OpenDDS::DCPS::DomainParticipantReportDataWriter_ptr dp_writer)
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28