YARP
Yet Another Robot Platform
PortReader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2019 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_OS_PORTREADER_H
11 #define YARP_OS_PORTREADER_H
12 
13 #include <yarp/os/api.h>
14 
15 namespace yarp {
16 namespace os {
17 
18 class ConnectionReader;
19 class Type;
20 
28 {
29 public:
33  virtual ~PortReader();
34 
43  virtual bool read(ConnectionReader& reader) = 0;
44 
45  virtual Type getReadType() const;
46 };
47 
48 } // namespace os
49 } // namespace yarp
50 
51 
52 #endif // YARP_OS_PORTREADER_H
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
Definition: ImageFile.cpp:516
#define YARP_OS_API
Definition: api.h:19
The main, catch-all namespace for YARP.
Definition: numeric.h:47
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:27
An interface for reading from a network connection.