YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeDeviceServerImpl.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7#include <yarp/os/LogStream.h>
8
10
11namespace {
12YARP_LOG_COMPONENT(FAKEDEVICESERVER, "yarp.device.FakeDeviceServer")
13}
14
16{
17 if (m_iFake == nullptr)
18 {
19 yCError(FAKEDEVICESERVER, "Invalid interface");
21 }
22
24 if (!ret)
25 {
26 yCError(FAKEDEVICESERVER, "doSomething() failed");
27 return ret;
28 }
29
30 return yarp::dev::ReturnValue_ok;
31}
32
37
39{
40 m_iFake = nullptr;
41}
bool ret
void setInterface(yarp::dev::test::IFakeDeviceInterfaceTest1 *_iFake)
yarp::dev::ReturnValue doSomethingRPC() override
@ return_value_error_not_ready
Method failed due to invalid internal status/invalid request.
A fake interface for testing,debugging and development purposes.
virtual yarp::dev::ReturnValue doSomething()=0
A method for testing purposes.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)