PLCnext API Documentation 24.0.0.71
Endianness.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8namespace Arp
9{
10
12enum class Endianness
13{
14 None = 0,
15 BigEndian = 1,
16 LittleEndian = 2,
17
18 // define Current endianess
19#ifdef ARP_BIG_ENDIAN
20 Current = BigEndian
21#else
22 Current = LittleEndian
23#endif
24};
25
27// global stream operators of enum Endianness for logging and parsing
28ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, Endianness value);
29ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, Endianness& value);
30
31} // end of namespace Arp
std::ostream & operator<<(std::ostream &os, const BasicString< CharType, Alloc > &right)
Streams the right string to the outstream os .
Definition: BasicString.hxx:1740
std::istream & operator>>(std::istream &is, BasicString< CharType, Alloc > &right)
Streams the instream is into the right string.
Definition: BasicString.hxx:1751
Root namespace for the PLCnext API
Endianness
This enum defines the endinannes of the target architecture.
Definition: Endianness.hpp:13
@ BigEndian
Determines big endian.
@ LittleEndian
Determines little endian.