PLCnext API Documentation 25.0.2.69
ShutdownMode.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 Net
11{
12
14enum class ShutdownMode
15{
17 None = 0,
19 Read = 1,
21 Write = 2,
23 ReadWrite = 3,
24};
25
27// global stream operators of enum PollMode for logging and parsing
28ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, ShutdownMode value);
29ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, ShutdownMode& value);
30
31}}}} // end of namespace Arp::System::Commons::Net
32
33template<> struct fmt::formatter<Arp::System::Commons::Net::ShutdownMode>: public fmt::ostream_formatter {};
@ Write
Specifies write access to the file. Data can be written to the file and the file pointer can be moved...
@ ReadWrite
Specifies read and write access to the file. Data can be written to the file and the file pointer can...
@ Read
Specifies read access to the file. Data can be read from the file and the file pointer can be moved....
std::ostream & operator<<(std::ostream &os, const IpAddress &ipAddress)
The ostream operator is used for logging and string formatting.
Definition: IpAddress.cpp:76
std::istream & operator>>(std::istream &is, IpAddress &ipAddress)
The istream operator is used for string parsing.
Definition: IpAddress.cpp:83
ShutdownMode
This enum is used to specifiy the shutdown mode of the <cref name="Socket::Shutdown(ShutdownMode)" > ...
Definition: ShutdownMode.hpp:15
Root namespace for the PLCnext API