PLCnext API Documentation 25.0.2.69
DateTimeKind.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
7#define ARP_INSIDE_ARP_BASE_CORE_ARP_H
9#include "Arp/Base/Core/Detail/BasicFormatter.hxx"
10#include <iosfwd>
11
12namespace Arp { namespace Base { namespace Core
13{
14
19enum class DateTimeKind
20{
21 Unspecified = 0,
22 Utc = 1,
23 Local = 2
24};
25
27// global stream operators of enum DateTimeKind for logging and parsing
28ARP_EXPORT std::ostream& operator<<(std::ostream& os, DateTimeKind value);
29ARP_EXPORT std::istream& operator>>(std::istream& is, DateTimeKind& value);
30
31}}} // end of namespace Arp::Base::Core
32
34template<> struct fmt::formatter<Arp::Base::Core::DateTimeKind>: public fmt::ostream_formatter {};
Root namespace for the PLCnext API