YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
12namespace yarp::os {
13
14class ConnectionReader;
15class Type;
16
24{
25public:
29 virtual ~PortReader();
30
39 virtual bool read(ConnectionReader& reader) = 0;
40
41 virtual Type getReadType() const;
42};
43
44} // namespace yarp::os
45
46
47#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:24
virtual bool read(ConnectionReader &reader)=0
Read this object from a network connection.
virtual ~PortReader()
Destructor.
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18