forked from jimjibone/goopenzwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gzw_loglevel.cpp
48 lines (47 loc) · 1.28 KB
/
gzw_loglevel.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "gzw_loglevel.h"
OpenZWave::LogLevel loglevel_toLogLevel(loglevel_t level)
{
OpenZWave::LogLevel loglevel;
switch (level) {
case loglevel_invalid:
loglevel = OpenZWave::LogLevel_Invalid;
break;
case loglevel_none:
loglevel = OpenZWave::LogLevel_None;
break;
case loglevel_always:
loglevel = OpenZWave::LogLevel_Always;
break;
case loglevel_fatal:
loglevel = OpenZWave::LogLevel_Fatal;
break;
case loglevel_error:
loglevel = OpenZWave::LogLevel_Error;
break;
case loglevel_warning:
loglevel = OpenZWave::LogLevel_Warning;
break;
case loglevel_alert:
loglevel = OpenZWave::LogLevel_Alert;
break;
case loglevel_info:
loglevel = OpenZWave::LogLevel_Info;
break;
case loglevel_detail:
loglevel = OpenZWave::LogLevel_Detail;
break;
case loglevel_debug:
loglevel = OpenZWave::LogLevel_Debug;
break;
case loglevel_streamdetail:
loglevel = OpenZWave::LogLevel_StreamDetail;
break;
case loglevel_internal:
loglevel = OpenZWave::LogLevel_Internal;
break;
default:
loglevel = OpenZWave::LogLevel_Invalid;
break;
}
return loglevel;
}