MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
event.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 
5 namespace mbgl {
6 
7 enum class EventSeverity : uint8_t {
8  Debug,
9  Info,
10  Warning,
11  Error,
12 };
13 
14 enum class Event : uint8_t {
15  General,
16  Setup,
17  Shader,
18  ParseStyle,
19  ParseTile,
20  Render,
21  Style,
22  Database,
24  Sprite,
25  Image,
26  OpenGL,
27  JNI,
28  Android,
29  Crash,
30  Glyph,
31  Timing
32 };
33 
36  const Event event;
37 
38  constexpr bool operator==(const EventPermutation &rhs) const {
39  return severity == rhs.severity && event == rhs.event;
40  }
41 };
42 
44 #ifndef NDEBUG
45  EventSeverity(-1) // Avoid zero size array
46 #else
48 #endif
49 };
50 
51 constexpr Event disabledEvents[] = {
52  Event(-1) // Avoid zero size array
53 };
54 
57 };
58 
59 } // namespace mbgl
Definition: actor.hpp:15
Event
Definition: event.hpp:14
constexpr Event disabledEvents[]
Definition: event.hpp:51
constexpr EventPermutation disabledEventPermutations[]
Definition: event.hpp:55
constexpr EventSeverity disabledEventSeverities[]
Definition: event.hpp:43
EventSeverity
Definition: event.hpp:7
const Event event
Definition: event.hpp:36
constexpr bool operator==(const EventPermutation &rhs) const
Definition: event.hpp:38
const EventSeverity severity
Definition: event.hpp:35