YARP
Yet Another Robot Platform
DriverLinkCreator.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
10 
12  name(name)
13 {
14  holding.link(source);
15 }
16 
18 {
19  holding.close();
20 }
yarp::dev::PolyDriver::link
bool link(PolyDriver &alt)
Make this device be a link to an existing one.
Definition: PolyDriver.cpp:204
yarp::dev::PolyDriver
A container for a device driver.
Definition: PolyDriver.h:27
DriverLinkCreator.h
yarp::dev::DriverLinkCreator::DriverLinkCreator
DriverLinkCreator(const std::string &name, PolyDriver &source)
Definition: DriverLinkCreator.cpp:11
yarp::dev::DriverLinkCreator::~DriverLinkCreator
virtual ~DriverLinkCreator() override
Definition: DriverLinkCreator.cpp:17