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
14namespace yarp::dev {
15class PolyDriverDescriptor;
16}
17
19{
20public:
21 /* pointer to the polydriver */
23 /* descriptor */
25
27 {
28 poly=0;
29 key="";
30 }
31
32 PolyDriverDescriptor(PolyDriver *np, const char *k)
33 {
34 poly=np;
35 key=std::string(k);
36 }
37};
38
39#endif // YARP_DEV_POLYDRIVERDESCRIPTOR_H
PolyDriverDescriptor(PolyDriver *np, const char *k)
A container for a device driver.
Definition: PolyDriver.h:23
For streams capable of holding different kinds of content, check what they actually have.
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:338
#define YARP_dev_API
Definition: api.h:18