8#include "Arp/Base/Core/Enum.hxx"
12namespace Arp::Services::BackupAndRestore::Services
19enum class BackupAndRestoreBehavior :
uint32
34 RequiresPowerCycle = 2,
39 DependsOnSameDevice = 4,
42constexpr BackupAndRestoreBehavior operator|(BackupAndRestoreBehavior lhs, BackupAndRestoreBehavior rhs)
44 return static_cast<BackupAndRestoreBehavior
>(
static_cast<uint32>(lhs) |
static_cast<uint32>(rhs));
47constexpr BackupAndRestoreBehavior operator&(BackupAndRestoreBehavior lhs, BackupAndRestoreBehavior rhs)
49 return static_cast<BackupAndRestoreBehavior
>(
static_cast<uint32>(lhs) &
static_cast<uint32>(rhs));
52constexpr BackupAndRestoreBehavior& operator|=(BackupAndRestoreBehavior& lhs, BackupAndRestoreBehavior rhs)
54 return (lhs =
static_cast<BackupAndRestoreBehavior
>(
static_cast<uint32>(lhs) |
static_cast<uint32>(rhs)));
57constexpr BackupAndRestoreBehavior& operator&=(BackupAndRestoreBehavior& lhs, BackupAndRestoreBehavior rhs)
59 return (lhs =
static_cast<BackupAndRestoreBehavior
>(
static_cast<uint32>(lhs) &
static_cast<uint32>(rhs)));
62constexpr BackupAndRestoreBehavior operator~(BackupAndRestoreBehavior arg)
64 return static_cast<BackupAndRestoreBehavior
>(~static_cast<uint32>(arg));
69ARP_EXPORT std::ostream& operator<<(std::ostream& os, BackupAndRestoreBehavior value);
70ARP_EXPORT std::istream& operator>>(std::istream& is, BackupAndRestoreBehavior& value);
76template<>
struct fmt::formatter<
Arp::Services::BackupAndRestore::Services::BackupAndRestoreBehavior> :
public fmt::ostream_formatter {};
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:33
Root namespace for the PLCnext API