YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
DeviceDriver.cpp
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#include <cstdio>
9#include <yarp/os/Vocab.h>
11#include <yarp/os/Value.h>
12
13using namespace yarp::dev;
14using namespace yarp::os;
15using namespace yarp::os::impl;
16
18{
19public:
20 std::string device_id;
21};
22
27
29{
30 delete mPriv;
31}
32
33void DeviceDriver::setId(const std::string& id)
34{
35 mPriv->device_id = id;
36}
37
38std::string DeviceDriver::id() const
39{
40 return mPriv->device_id;
41}
virtual void setId(const std::string &id)
Set the id for this device.
virtual std::string id() const
Return the id assigned to the PolyDriver.
A mini-server for performing network communication in the background.
For streams capable of holding different kinds of content, check what they actually have.
The components from which ports and connections are built.
An interface to the operating system, including Port based communication.
Definition OSTestMsg.cpp:13