Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
c
f
l
o
p
r
s
t
+
Functions
f
l
o
t
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
~
+
Functions
a
c
d
e
f
g
i
l
o
p
r
s
t
u
w
~
+
Variables
a
c
d
f
i
k
m
p
r
s
t
u
v
w
Enumerations
+
Enumerator
b
d
f
h
m
p
r
s
+
Files
File List
+
File Members
All
Functions
Variables
Macros
include
schunk_svh_library
LogHandler.h
Go to the documentation of this file.
1
//
3
// © Copyright 2022 SCHUNK Mobile Greifsysteme GmbH, Lauffen/Neckar Germany
4
// © Copyright 2022 FZI Forschungszentrum Informatik, Karlsruhe, Germany
5
//
6
// This file is part of the Schunk SVH Library.
7
//
8
// The Schunk SVH Library is free software: you can redistribute it and/or
9
// modify it under the terms of the GNU General Public License as published by
10
// the Free Software Foundation, either version 3 of the License, or (at your
11
// option) any later version.
12
//
13
// The Schunk SVH Library is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16
// Public License for more details.
17
//
18
// You should have received a copy of the GNU General Public License along with
19
// the Schunk SVH Library. If not, see <https://www.gnu.org/licenses/>.
20
//
22
23
//----------------------------------------------------------------------
30
//----------------------------------------------------------------------
31
#pragma once
32
33
#include <string>
34
35
#include <
schunk_svh_library/LogLevel.h
>
36
37
namespace
driver_svh
{
38
39
class
LogHandler
40
{
41
public
:
42
LogHandler
() =
default
;
43
virtual
~LogHandler
() =
default
;
44
45
virtual
void
log
(
const
std::string& file,
46
const
int
line,
47
const
std::string& name,
48
LogLevel
level,
49
const
std::string& msg) = 0;
50
};
51
52
class
ShellLogHandler
:
public
LogHandler
53
{
54
public
:
55
ShellLogHandler
() =
default
;
56
virtual
~
ShellLogHandler
()
override
=
default
;
57
virtual
void
log
(
const
std::string& file,
58
const
int
line,
59
const
std::string& name,
60
LogLevel
level,
61
const
std::string& msg)
override
;
62
63
private
:
64
};
65
66
}
// namespace driver_svh
driver_svh::LogHandler::~LogHandler
virtual ~LogHandler()=default
driver_svh
Definition:
SVHControlCommand.h:39
driver_svh::LogLevel
LogLevel
Definition:
LogLevel.h:37
LogLevel.h
driver_svh::LogHandler::log
virtual void log(const std::string &file, const int line, const std::string &name, LogLevel level, const std::string &msg)=0
driver_svh::ShellLogHandler
Definition:
LogHandler.h:52
driver_svh::LogHandler
Definition:
LogHandler.h:39
driver_svh::LogHandler::LogHandler
LogHandler()=default
schunk_svh_library
Author(s): Georg Heppner, Lars Pfotzer, Felix Exner, Johannes Mangler, Stefan Scherzinger, Pascal Becker
autogenerated on Fri Apr 14 2023 02:26:23