PLCnext API Documentation 23.6.0.37
EncodingResult.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/System/Core/Enum.hxx"
9
10namespace Arp { namespace System { namespace Commons { namespace Encoding
11{
12
16{
17 None = 0,
18 Success = 1,
19 Partial = 2,
20 InvalidChar = 3,
21 Error = 4,
22 NoConversion = 5,
23 InvalidArgument = 6,
24 OutOfMemory = 7,
25 Unspecified = 512
26};
27
29// global stream operators of enum EncodingResult for logging and parsing
30
32ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, EncodingResult value);
33
35ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, EncodingResult& value);
36
37}}}} // end of namespace Arp::System::Commons::Encoding
EncodingResult
This enum defines encoding results for operations of class Utf16.
Definition: EncodingResult.hpp:16
@ InvalidArgument
No conversion required, input and output types are the same or empty.
@ NoConversion
No conversion required, input and output types are the same or empty.
@ Partial
Not all characters were converted, e.g. if the buffer was to small.
@ Unspecified
Unspecified conversion error.
@ OutOfMemory
Not enough memory available.
@ InvalidChar
An invalid character encountered.
ARP_CXX_SYMBOL_EXPORT std::istream & operator>>(std::istream &is, EncodingResult &value)
Global input stream operator of enum EncodingResult for parsing.
ARP_CXX_SYMBOL_EXPORT std::ostream & operator<<(std::ostream &os, EncodingResult value)
Global output stream operator of enum EncodingResult for logging.
Root namespace for the PLCnext API