YARP
Yet Another Robot Platform
PortReaderCreator.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_PORTREADERCREATOR_H
8 #define YARP_OS_PORTREADERCREATOR_H
9 
11 #include <yarp/os/PortReader.h>
12 
13 #include <string>
14 
15 namespace yarp {
16 namespace os {
17 
31 {
32 public:
36  virtual ~PortReaderCreator();
37 
43  virtual PortReader* create() const = 0;
44 };
45 
46 } // namespace os
47 } // namespace yarp
48 
49 #endif // YARP_OS_PORTREADERCREATOR_H
A creator for readers.
virtual PortReader * create() const =0
Factory for PortReader objects.
virtual ~PortReaderCreator()
Destructor.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:25
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18