PLCnext API Documentation 26.6.0.38
AppManagerStatus.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
30{
34 None = 0,
35
39 Ready = 1, // (1 << 0)
40
44 InstallingApp = 2, // (1 << 1)
45
50
54 StartingApp = 4, // (1 << 2)
55
59 StoppingApp = 5,
60
64 Initializing = 6,
65
70
74 InstallationModeEnabled = 64, // (1 << 6)
75
79 RestartRequired = 128, // (1 << 7)
80
84 InstallError = 256, // (1 << 8)
85
89 StateMask = 63,
90
94 FlagsMask = 4294967232,
95};
96
97constexpr AppManagerStatus operator|(AppManagerStatus lhs, AppManagerStatus rhs)
98{
99 return static_cast<AppManagerStatus>(static_cast<uint32>(lhs) | static_cast<uint32>(rhs));
100}
101
102constexpr AppManagerStatus operator&(AppManagerStatus lhs, AppManagerStatus rhs)
103{
104 return static_cast<AppManagerStatus>(static_cast<uint32>(lhs) & static_cast<uint32>(rhs));
105}
106
107constexpr AppManagerStatus& operator|=(AppManagerStatus& lhs, AppManagerStatus rhs)
108{
109 return (lhs = static_cast<AppManagerStatus>(static_cast<uint32>(lhs) | static_cast<uint32>(rhs)));
110}
111
112constexpr AppManagerStatus& operator&=(AppManagerStatus& lhs, AppManagerStatus rhs)
113{
114 return (lhs = static_cast<AppManagerStatus>(static_cast<uint32>(lhs) & static_cast<uint32>(rhs)));
115}
116
117constexpr AppManagerStatus operator~(AppManagerStatus arg)
118{
119 return static_cast<AppManagerStatus>(~static_cast<uint32>(arg));
120}
121
123// global stream operators of enum AppManagerStatus for logging and parsing
124ARP_EXPORT std::ostream& operator<<(std::ostream& os, AppManagerStatus value);
125ARP_EXPORT std::istream& operator>>(std::istream& is, AppManagerStatus& value);
126
127} // end of namespace Arp::Services::AppManager::Services
128
130// template specialization of AppManagerStatus formatter
131template<> struct fmt::formatter<Arp::Services::AppManager::Services::AppManagerStatus> : 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
AppManagerStatus
Bit field that indicates the App Manager state and related flags.
Definition: AppManagerStatus.hpp:30
@ RestartRequired
This bit is set if at least one App needs a restart to work properly.
@ InstallError
Set if an error occurred while installing or uninstalling a PLCnext Technology Application.
@ VerifyingAppSignature
The AppManager is currently verifying app signature.
@ InstallationModeEnabled
This bit is set if the installation mode is enabled.
@ UninstallingApp
The AppManager is currently uninstalling a PLCnext application.
@ InstallingApp
The AppManager is currently installing a PLCnext application.
@ StoppingApp
The AppManager is currently stopping a PLCnext application.
@ StartingApp
The AppManager is currently starting a PLCnext application.
Root namespace for the PLCnext API