PLCnext API Documentation 25.0.2.69
DurationUnit.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/System/Core/Enum.hxx"
9
10namespace Arp { namespace System { namespace Commons { namespace Chrono
11{
12
13enum class DurationUnit
14{
15 None = 0,
19 Seconds,
20 Minutes,
21 Hours,
22 Default = Nanoseconds
23};
24
26// global stream operators of enum DurationUnit for logging and parsing
27ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, DurationUnit value);
28ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, DurationUnit& value);
29
30}}}} // end of namesapce Arp::System::Commons::Chrono
31
33// template specialization of DurationUnit formatter
34template<> struct fmt::formatter<Arp::System::Commons::Chrono::DurationUnit>: public fmt::ostream_formatter {};
std::chrono::seconds Seconds
The Arp Seconds unit class.
Definition: ChronoTypes.hpp:46
std::chrono::minutes Minutes
The Arp Minutes unit class.
Definition: ChronoTypes.hpp:49
std::chrono::hours Hours
The Arp Hours unit class.
Definition: ChronoTypes.hpp:52
std::chrono::microseconds Microseconds
The Arp Microseconds unit class.
Definition: ChronoTypes.hpp:40
std::chrono::nanoseconds Nanoseconds
The Arp Nanoseconds unit class.
Definition: ChronoTypes.hpp:37
std::chrono::milliseconds Milliseconds
The Arp Milliseconds unit class.
Definition: ChronoTypes.hpp:43
Root namespace for the PLCnext API