YARP
Yet Another Robot Platform
PolyDriverDescriptor.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_DEV_POLYDRIVERDESCRIPTOR_H
8 #define YARP_DEV_POLYDRIVERDESCRIPTOR_H
9 
10 
11 #include <yarp/dev/PolyDriver.h>
12 #include <string>
13 
14 namespace yarp {
15  namespace dev {
16  class PolyDriverDescriptor;
17  }
18 }
19 
21 {
22 public:
23  /* pointer to the polydriver */
25  /* descriptor */
27 
29  {
30  poly=0;
31  key="";
32  }
33 
34  PolyDriverDescriptor(PolyDriver *np, const char *k)
35  {
36  poly=np;
37  key=std::string(k);
38  }
39 };
40 
41 #endif // YARP_DEV_POLYDRIVERDESCRIPTOR_H
PolyDriverDescriptor(PolyDriver *np, const char *k)
A container for a device driver.
Definition: PolyDriver.h:24
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.
Definition: system.h:336
#define YARP_dev_API
Definition: api.h:18