YARP
Yet Another Robot Platform
LogForwarder.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_IMPL_LOGFORWARDER_H
7
#define YARP_OS_IMPL_LOGFORWARDER_H
8
9
#include <
yarp/os/api.h
>
10
11
#include <
yarp/os/Port.h
>
12
13
#include <mutex>
14
#include <string>
15
16
namespace
yarp
{
17
namespace
os {
18
namespace
impl {
19
20
class
YARP_os_impl_API
LogForwarder
21
{
22
public
:
23
~LogForwarder
();
24
static
LogForwarder
& getInstance();
25
26
void
forward(
const
std::string& message);
27
static
void
shutdown();
28
29
private
:
30
LogForwarder
();
31
LogForwarder
(
LogForwarder
const
&) =
delete
;
32
LogForwarder
& operator=(
LogForwarder
const
&) =
delete
;
33
34
std::mutex mutex;
35
yarp::os::Port
outputPort;
36
static
bool
started;
37
};
38
39
}
// namespace impl
40
}
// namespace os
41
}
// namespace yarp
42
43
#endif
// YARP_OS_IMPL_LOGFORWARDER_H
Port.h
yarp::os::Port
A mini-server for network communication.
Definition:
Port.h:47
yarp::os::impl::LogForwarder
Definition:
LogForwarder.h:21
yarp::os::impl::LogForwarder::~LogForwarder
~LogForwarder()
yarp
The main, catch-all namespace for YARP.
Definition:
dirs.h:16
api.h
YARP_os_impl_API
#define YARP_os_impl_API
Definition:
api.h:46
YARP
3.5.1
src
libYARP_os
src
yarp
os
impl
LogForwarder.h
Generated on Sat Dec 25 2021 02:23:04 for YARP by
1.9.1