PLCnext API Documentation 26.6.0.38
AppStatus.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Core/Enum.hxx"
9
10// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
11
13{
14
30enum class AppStatus : uint32
31{
35 None = 0,
36
39 Installed = 1, // (1 << 0)
40
44 Starting = 2, // (1 << 1)
45
49 Started = 3,
50
54 Stopping = 4, // (1 << 2)
55
59 Stopped = 5,
60
64 Uninstalling = 6,
65
69 RestartRequired = 64, // (1 << 6)
70
74 StartError = 128, // (1 << 7)
75
79 StopError = 256, // (1 << 8)
80
84 StateMask = 63,
85
89 FlagsMask = 4294967232,
90};
91
92constexpr AppStatus operator|(AppStatus lhs, AppStatus rhs)
93{
94 return static_cast<AppStatus>(static_cast<uint32>(lhs) | static_cast<uint32>(rhs));
95}
96
97constexpr AppStatus operator&(AppStatus lhs, AppStatus rhs)
98{
99 return static_cast<AppStatus>(static_cast<uint32>(lhs) & static_cast<uint32>(rhs));
100}
101
102constexpr AppStatus& operator|=(AppStatus& lhs, AppStatus rhs)
103{
104 return (lhs = static_cast<AppStatus>(static_cast<uint32>(lhs) | static_cast<uint32>(rhs)));
105}
106
107constexpr AppStatus& operator&=(AppStatus& lhs, AppStatus rhs)
108{
109 return (lhs = static_cast<AppStatus>(static_cast<uint32>(lhs) & static_cast<uint32>(rhs)));
110}
111
112constexpr AppStatus operator~(AppStatus arg)
113{
114 return static_cast<AppStatus>(~static_cast<uint32>(arg));
115}
116
118// global stream operators of enum AppStatus for logging and parsing
119ARP_EXPORT std::ostream& operator<<(std::ostream& os, AppStatus value);
120ARP_EXPORT std::istream& operator>>(std::istream& is, AppStatus& value);
121
122} // end of namespace Arp::Services::AppManager::Services
123
125// template specialization of AppStatus formatter
126template<> struct fmt::formatter<Arp::Services::AppManager::Services::AppStatus> : public fmt::ostream_formatter {};
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:33
Namespace for services of the AppManager
@ RestartRequired
This bit is set if at least one App needs a restart to work properly.
AppStatus
Bit field that indicates the status of a PLCnext application and related flags.
Definition: AppStatus.hpp:31
@ StopError
This bit is set if an error has occurred during the last stop operation of the PLCnext Technology App...
@ Installed
The PLCnext Technology App is installed. This is an initial app status on installation,...
@ StartError
This bit is set if an error has occurred during the last start operation of the PLCnext Technology Ap...
@ Uninstalling
The PLCnext application is being uninstalled.
@ Stopped
summary>Thread is either waiting for an event, currently sleeping or waits for another thread to fini...
Root namespace for the PLCnext API