YARP
Yet Another Robot Platform
PortReport.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_OS_PORTREPORT_H
8 #define YARP_OS_PORTREPORT_H
9 
10 #include <yarp/os/api.h>
11 
12 namespace yarp {
13 namespace os {
14 class PortInfo;
15 } // namespace os
16 } // namespace yarp
17 
18 namespace yarp {
19 namespace os {
20 
28 {
29 public:
33  virtual ~PortReport();
34 
45  virtual void report(const PortInfo& info) = 0;
46 };
47 
48 } // namespace os
49 } // namespace yarp
50 
51 #endif // YARP_OS_PORTREPORT_H
Information about a port connection or event.
Definition: PortInfo.h:26
A base class for objects that want information about port status changes.
Definition: PortReport.h:28
virtual ~PortReport()
Destructor.
virtual void report(const PortInfo &info)=0
Callback for port event/state information.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18