YARP
Yet Another Robot Platform
Nop.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_NOP_NOP_H
7#define YARP_NOP_NOP_H
8
11
17class Nop :
20{
21public:
22 Nop();
23 Nop(const Nop&) = delete;
24 Nop(Nop&&) = delete;
25 Nop& operator=(const Nop&) = delete;
26 Nop& operator=(Nop&&) = delete;
27
28 ~Nop() override;
29
30 bool open(yarp::os::Searchable& config) override;
31 bool close() override;
32
33 void run() override;
34
35private:
36 yarp::conf::float64_t period{1.0};
37};
38
39#endif // YARP_NOP_NOP_H
test_nop: A test device that does absolutely nothing.
Definition: Nop.h:20
Nop(const Nop &)=delete
void run() override
Loop function.
Definition: Nop.cpp:45
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
Definition: Nop.cpp:26
bool close() override
Close the DeviceDriver.
Definition: Nop.cpp:40
Nop & operator=(Nop &&)=delete
~Nop() override
Definition: Nop.cpp:22
Nop(Nop &&)=delete
Nop & operator=(const Nop &)=delete
Nop()
Definition: Nop.cpp:17
Interface implemented by all device drivers.
Definition: DeviceDriver.h:30
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
Definition: Searchable.h:63
double float64_t
Definition: numeric.h:77