PLCnext API Documentation 25.0.2.69
SeekOrigin.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
7#ifndef ARP_USE_ARP_SYSTEM_COMMONS
8#include "Arp/Base/Commons/Io/SeekOrigin.hpp"
10{
11using Arp::Base::Commons::Io::SeekOrigin;
12}
13#else
14#include "Arp/Base/Core/Arp.hpp"
15#include "Arp/Base/Commons/Io/SeekOrigin.hpp"
16
17namespace Arp { namespace System { namespace Commons { namespace Io
18{
19
26enum class SeekOrigin
27{
29 None = 0,
33 Begin = 1,
37 Current = 2,
41 End = 3
42};
43
45// global stream operators of enum SeekOrigin for logging and parsing
46ARP_EXPORT std::ostream& operator<<(std::ostream& os, SeekOrigin value);
47ARP_EXPORT std::istream& operator>>(std::istream& is, SeekOrigin& value);
48
49}}}} // end of namespace Arp::System::Commons::Io
50
51template<> struct fmt::formatter<Arp::System::Commons::Io::SeekOrigin>: public fmt::ostream_formatter {};
52#endif // ndef ARP_USE_ARP_SYSTEM_COMMONS
Namespace for classes related to the filesystem and file I/O
Root namespace for the PLCnext API