YARP
Yet Another Robot Platform
Nop.h
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
9
#ifndef YARP_NOP_NOP_H
10
#define YARP_NOP_NOP_H
11
12
#include <
yarp/os/PeriodicThread.h
>
13
#include <
yarp/dev/DeviceDriver.h
>
14
20
class
Nop
:
21
public
yarp::dev::DeviceDriver
,
22
public
yarp::os::PeriodicThread
23
{
24
public
:
25
Nop
();
26
Nop
(
const
Nop
&) =
delete
;
27
Nop
(
Nop
&&) =
delete
;
28
Nop
&
operator=
(
const
Nop
&) =
delete
;
29
Nop
&
operator=
(
Nop
&&) =
delete
;
30
31
~Nop
()
override
;
32
33
bool
open
(
yarp::os::Searchable
& config)
override
;
34
bool
close
()
override
;
35
36
void
run
()
override
;
37
38
private
:
39
yarp::conf::float64_t
period{1.0};
40
};
41
42
#endif // YARP_NOP_NOP_H
yarp::os::Searchable
A base class for nested structures that can be searched.
Definition:
Searchable.h:69
Nop::operator=
Nop & operator=(Nop &&)=delete
yarp::dev::DeviceDriver
Interface implemented by all device drivers.
Definition:
DeviceDriver.h:38
Nop::Nop
Nop()
Definition:
Nop.cpp:20
Nop::close
bool close() override
Close the DeviceDriver.
Definition:
Nop.cpp:43
Nop
test_nop: A test device that does absolutely nothing.
Definition:
Nop.h:23
Nop::open
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
Definition:
Nop.cpp:29
Nop::Nop
Nop(const Nop &)=delete
Nop::Nop
Nop(Nop &&)=delete
yarp::os::PeriodicThread
An abstraction for a periodic thread.
Definition:
PeriodicThread.h:25
PeriodicThread.h
yarp::conf::float64_t
double float64_t
Definition:
numeric.h:51
Nop::run
void run() override
Loop function.
Definition:
Nop.cpp:48
Nop::~Nop
~Nop() override
Definition:
Nop.cpp:25
Nop::operator=
Nop & operator=(const Nop &)=delete
DeviceDriver.h
YARP
3.4.100+20201223.2+gitb8ea4d712
src
devices
test_nop
Nop.h
Generated on Sun Jan 3 2021 02:46:23 for YARP by
1.8.20