YARP
Yet Another Robot Platform
PolyDriverDescriptor.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 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_DEV_POLYDRIVERDESCRIPTOR_H
11
#define YARP_DEV_POLYDRIVERDESCRIPTOR_H
12
13
14
#include <
yarp/dev/PolyDriver.h
>
15
#include <string>
16
17
namespace
yarp
{
18
namespace
dev {
19
class
PolyDriverDescriptor;
20
}
21
}
22
23
class
YARP_dev_API
yarp
::
dev::PolyDriverDescriptor
24
{
25
public
:
26
/* pointer to the polydriver */
27
PolyDriver
*
poly
;
28
/* descriptor */
29
YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG
(std::string)
key
;
30
31
PolyDriverDescriptor
()
32
{
33
poly=0;
34
key=
""
;
35
}
36
37
PolyDriverDescriptor
(
PolyDriver
*np,
const
char
*k)
38
{
39
poly=np;
40
key=std::string(k);
41
}
42
};
43
44
#endif // YARP_DEV_POLYDRIVERDESCRIPTOR_H
yarp::dev::PolyDriverDescriptor::PolyDriverDescriptor
PolyDriverDescriptor()
Definition:
PolyDriverDescriptor.h:31
yarp::dev::PolyDriverDescriptor
Definition:
PolyDriverDescriptor.h:24
YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.
Definition:
system.h:339
yarp::dev::PolyDriverDescriptor::poly
PolyDriver * poly
Definition:
PolyDriverDescriptor.h:27
yarp::dev::PolyDriverDescriptor::key
std::string key
Definition:
PolyDriverDescriptor.h:29
PolyDriver.h
yarp::dev::PolyDriver
A container for a device driver.
Definition:
PolyDriver.h:27
yarp::dev::PolyDriverDescriptor::PolyDriverDescriptor
PolyDriverDescriptor(PolyDriver *np, const char *k)
Definition:
PolyDriverDescriptor.h:37
YARP_dev_API
#define YARP_dev_API
Definition:
api.h:19
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_dev
src
yarp
dev
PolyDriverDescriptor.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20