YARP
Yet Another Robot Platform
RFModuleFactory.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_OS_RFPLUGINFACTORY_H
7 #define YARP_OS_RFPLUGINFACTORY_H
8 
9 #include <yarp/os/RFModule.h>
10 
11 #include <string>
12 
13 namespace yarp {
14 namespace os {
15 
17 {
18 private:
20 
21 public:
22  static RFModuleFactory& GetInstance();
23  static void AddModule(const std::string& name, RFModule* (*moduleCreate)(void));
24  RFModule* GetModule(const std::string& name);
25 
26 #ifndef DOXYGEN_SHOULD_SKIP_THIS
27 private:
28  class Private;
29  Private* mPriv;
30 #endif // DOXYGEN_SHOULD_SKIP_THIS
31 
32 };
33 
34 }
35 }
36 
37 #endif // YARP_OS_RFPLUGINFACTORY_H
A base-class for standard YARP modules that supports ResourceFinder.
Definition: RFModule.h:21
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18