IDS peak genericC++  v1.4.1
peak_common_system_enums.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 
13 
14 namespace peak
15 {
16 namespace core
17 {
18 
25 {
26  ASCII = 0,
27  UTF8
28 };
29 
30 inline std::string ToString(CharacterEncoding entry)
31 {
32  std::string entryString;
33 
34  if (entry == CharacterEncoding::ASCII)
35  {
36  entryString = "ASCII";
37  }
38  else if (entry == CharacterEncoding::UTF8)
39  {
40  entryString = "UTF8";
41  }
42 
43  return entryString;
44 }
45 
46 } /* namespace core */
47 } /* namespace peak */
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition: peak_dynamic_loader.h:32
std::string ToString(BufferPayloadType entry)
Definition: peak_buffer.hpp:472
CharacterEncoding
Possible character encodings.
Definition: peak_common_system_enums.hpp:24