YARP
Yet Another Robot Platform
PortReader.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_PORTREADER_H
8 #define YARP_OS_PORTREADER_H
9 
10 #include <yarp/os/api.h>
11 
12 namespace yarp {
13 namespace os {
14 
15 class ConnectionReader;
16 class Type;
17 
25 {
26 public:
30  virtual ~PortReader();
31 
40  virtual bool read(ConnectionReader& reader) = 0;
41 
42  virtual Type getReadType() const;
43 };
44 
45 } // namespace os
46 } // namespace yarp
47 
48 
49 #endif // YARP_OS_PORTREADER_H
An interface for reading from a network connection.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:25
virtual bool read(ConnectionReader &reader)=0
Read this object from a network connection.
virtual ~PortReader()
Destructor.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18