IDS peak genericC++  v1.7.1
peak_common_enums.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 
13 
14 #include <string>
15 
16 
17 namespace peak
18 {
19 namespace core
20 {
21 
27 enum class Endianness
28 {
32  Unknown,
36  Little,
40  Big
41 };
42 
43 inline std::string ToString(Endianness entry)
44 {
45  std::string entryString;
46 
47  if (entry == Endianness::Unknown)
48  {
49  entryString = "Unknown";
50  }
51  else if (entry == Endianness::Little)
52  {
53  entryString = "Little";
54  }
55  else if (entry == Endianness::Big)
56  {
57  entryString = "Big";
58  }
59 
60  return entryString;
61 }
62 
63 } /* namespace core */
64 } /* 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:505
Endianness
Endianness of pixel data in a Buffer or the data in a Port.
Definition: peak_common_enums.hpp:27