PLCnext API Documentation 25.0.2.69
BackupError.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
18enum class BackupError : uint8
19{
23 None = 0,
24
29
34
38 NoRetainData = 3,
39
44
48 NoSuchFile = 5,
49
54
59
63 InvalidFile = 8,
64
68 Unspecified = 255,
69};
70
72// global stream operators of enum BackupError for logging and parsing
73ARP_EXPORT std::ostream& operator<<(std::ostream& os, BackupError value);
74ARP_EXPORT std::istream& operator>>(std::istream& is, BackupError& value);
75
76} // end of namespace Arp::Plc::Retain::Services
77
79// template specialization of BackupError formatter
80template<> struct fmt::formatter<Arp::Plc::Retain::Services::BackupError> : public fmt::ostream_formatter {};
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:25
Namespace for services of the Retain component
BackupError
Possible error codes for retain rsc services.
Definition: BackupError.hpp:19
@ CrcFileMismatch
Crc mismatch while reading a the backup file.
@ LayoutMismatch
The backup data layout does not match the project.
@ InvalidVersion
The backup version is not valid / supported.
@ UnableToReadFile
Error when reading the backup file, e.g. no permission.
@ NoRetainData
No retain data exists to create a backup.
@ UnableToWriteFile
Error when writing the backup file, e.g. no permission or out of memory.
@ InvalidFile
The backup file is not valid.
@ NoSuchFile
No backup file exists.
Root namespace for the PLCnext API