ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
enums.hpp
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest
3// Manually added enums for OCPP, for the auto-generated ones see 'ocpp_enums.hpp'
4
5#ifndef OCPP_V2_ENUMS_HPP
6#define OCPP_V2_ENUMS_HPP
7
8#include <string>
9
10namespace ocpp {
11namespace v2 {
12
13enum class VariableMonitorType {
14 HardWiredMonitor,
15 PreconfiguredMonitor,
16 CustomMonitor,
17};
18
19namespace conversions {
22VariableMonitorType string_to_variable_monitor_type(const std::string& s);
23} // namespace conversions
24
25namespace MonitoringLevelSeverity {
26constexpr int32_t Danger = 0;
27constexpr int32_t HardwareFailure = 1;
28constexpr int32_t SystemFailure = 2;
29constexpr int32_t Critical = 3;
30constexpr int32_t Error = 4;
31constexpr int32_t Alert = 5;
32constexpr int32_t Warning = 6;
33constexpr int32_t Notice = 7;
34constexpr int32_t Informational = 8;
35constexpr int32_t Debug = 9;
36
37constexpr int32_t MIN = Danger;
38constexpr int32_t MAX = Debug;
39} // namespace MonitoringLevelSeverity
40
41} // namespace v2
42} // namespace ocpp
43
44#endif // OCPP_V2_ENUMS_HPP