PLCnext API Documentation 25.0.2.69
PlcStartKind.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/System/Core/Enum.hxx"
9
10ARP_DEPRECATED_IGNORE_BEGIN
11
12namespace Arp { namespace Plc { namespace Commons { namespace Domain
13{
14
15enum class ARP_DEPRECATED("Use 'Arp::Plc::Domain::Commons::PlcStartKind' instead.") PlcStartKind : uint8
16 {
17 None = 0,
18 Cold = 1,
19 Warm = 2,
20 Hot = 3,
21 RestoreWarm = 4,
22};
23
25// global stream operators of enum PlcStartKind for logging and parsing
26ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, PlcStartKind value);
27ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, PlcStartKind& value);
28
29}}}} // end of namespace Arp::Plc::Commons::Domain
30
31template<> struct fmt::formatter<Arp::Plc::Commons::Domain::PlcStartKind>: public fmt::ostream_formatter {};
32
33ARP_DEPRECATED_IGNORE_END
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:25
@ Warm
The PLC is stopped in warm state, that is the retain data has been restored.
@ Hot
The PLC is stopped in hot state, that is all data still remains.
@ RestoreWarm
Initiates a PLC warm start by restore, i.e. all data is reset to initial values, but retained data is...
@ Cold
Initiates a PLC cold start, i.e. all data is reset to initial values.
Root namespace for the PLCnext API
class ARP_DEPRECATED("Use Arp::Enum<T> instead.") EnumStrings
Deprecated! The class implements an adapter for enums to define the string literals of the enum entri...
Definition: EnumStrings.hxx:38