YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
NetworkClock.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_OS_NETWORKCLOCK_H
7
#define YARP_OS_NETWORKCLOCK_H
8
9
#include <
yarp/os/api.h
>
10
11
#include <
yarp/os/Clock.h
>
12
13
#include <string>
14
15
namespace
yarp::os
{
16
17
class
YARP_os_API
NetworkClock
:
public
Clock
18
{
19
public
:
20
NetworkClock
();
21
virtual
~NetworkClock
();
22
23
bool
open(
const
std::string&
clockSourcePortName
, std::string
localPortName
=
""
);
24
25
double
now()
override
;
26
void
delay(
double
seconds
)
override
;
27
bool
isValid()
const override
;
28
29
#ifndef DOXYGEN_SHOULD_SKIP_THIS
30
private
:
31
class
Private
;
32
Private
* mPriv;
33
#endif
// DOXYGEN_SHOULD_SKIP_THIS
34
};
35
36
}
// namespace yarp::os
37
38
39
#endif
// YARP_OS_NETWORKCLOCK_H
Clock.h
yarp::os::NetworkClock::Private
Definition
NetworkClock.cpp:36
yarp::os::BufferedPort
A mini-server for performing network communication in the background.
Definition
BufferedPort.h:60
yarp::os::Clock
Definition
Clock.h:14
yarp::os::NetworkClock
Definition
NetworkClock.h:18
yarp::os
An interface to the operating system, including Port based communication.
Definition
AbstractCarrier.h:13
api.h
YARP_os_API
#define YARP_os_API
Definition
api.h:18
YARP
3.10.1+35-20241205.6+git6b4bb23ab
src
libYARP_os
src
yarp
os
NetworkClock.h
Generated on Thu Dec 12 2024 02:37:47 for YARP by
1.9.8