PLCnext API Documentation 25.0.2.69
Severity.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/System/Core/Enum.hxx"
9
10namespace Arp { namespace System { namespace Nm
11{
12
14enum class ARP_CXX_SYMBOL_EXPORT Severity : uint8
15{
16 Internal = 0,
17 Info = 1,
18 Warning = 2,
19 Error = 3,
20 Critical = 4,
21 Fatal = 5,
22 Emerge = 6,
23};
24
26// global stream operators of enum LogLevel for logging and parsing
27ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, Severity value);
28ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, Severity& value);
29
30}}} // namespace Arp::System::Nm
31
32template<> struct fmt::formatter<Arp::System::Nm::Severity>: public fmt::ostream_formatter {};
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:25
enum ARP_CXX_SYMBOL_EXPORT Severity
Enumeration of Severities for notifications
Definition: Severity.hpp:14
Root namespace for the PLCnext API