GoPxL SDK
Def.h
Go to the documentation of this file.
1 
10 #ifndef GO_PXL_SDK_DEF_H
11 #define GO_PXL_SDK_DEF_H
12 
13 #include <iostream>
14 #include <string>
15 #include <vector>
16 #include <map>
17 #include <future>
18 #include <queue>
19 #include <algorithm>
20 
21 #include <kApi/kApiDef.h>
22 #include <GoApi/GoApiDef.h>
23 
24 #if defined(GOPXLSDK_EMIT)
25 # define GoPxLSdkCppFx(TYPE) kExportEx(TYPE)
26 # define GoPxLSdkFx(TYPE) kExportFx(TYPE)
27 # define GoPxLSdkCx(TYPE) kExportCx(TYPE)
28 # define GoPxLSdkDx(TYPE) kExportDx(TYPE)
29 # define GoPxLSdkClass kExportClass
30 #else
31 # define GoPxLSdkCppFx(TYPE) kImportEx(TYPE)
32 # define GoPxLSdkFx(TYPE) kImportFx(TYPE)
33 # define GoPxLSdkCx(TYPE) kImportCx(TYPE)
34 # define GoPxLSdkDx(TYPE) kImportDx(TYPE)
35 # define GoPxLSdkClass kImportClass
36 #endif
37 
39 constexpr k16u GO_PXL_SDK_DEFAULT_CONTROL_PORT = 3600; // Could vary for each GoPxL instance.
40 constexpr k16u GO_PXL_SDK_DEFAULT_GDP_SERVER_PORT = 3601; // Could vary for each GoPxL instance.
41 constexpr k16u GO_PXL_SDK_DEFAULT_WEB_PORT = 8100; // Could vary for each GoPxL instance.
42 
44 
45 
46 namespace GoPxLSdk
47 {
48 using Byte = kByte;
49 using ByteArray = std::vector<Byte>;
50 using SerialNum = std::string;
51 using ResourcePath = std::string;
52 
53 }
54 
58 namespace nlohmann
59 {
60  namespace detail
61  {
62  template<typename BasicJsonType>
63  class iter_impl;
64 
65  class exception;
66  }
67 
68  template<typename T, typename SFINAE>
70 
71  template
72  <
73  template<typename U, typename V, typename... Args> class ObjectType,
74  template<typename U, typename... Args> class ArrayType,
75  class StringType, class BooleanType,
76  class NumberIntegerType,
77  class NumberUnsignedType,
78  class NumberFloatType,
79  template<typename U> class AllocatorType,
80  template<typename T, typename SFINAE> class JSONSerializer,
81  class BinaryType
82  >
83  class basic_json;
84 
85  template<typename BasicJsonType>
86  class json_pointer;
87 
89 }
90 
91 #endif
std::string SerialNum
Definition: Def.h:50
constexpr k16u GO_PXL_SDK_DEFAULT_CONTROL_PORT
Definition: Def.h:39
constexpr k16u GO_PXL_SDK_DEFAULT_WEB_PORT
Definition: Def.h:41
std::string ResourcePath
Definition: Def.h:51
Definition: Def.h:69
constexpr k32u GO_PXL_SDK_MILLISECONDS_TO_MICROSECONDS_CONVERSION
Definition: Def.h:43
Definition: Def.h:63
constexpr k32u GO_PXL_SDK_DEFAULT_TCP_TIMEOUT_MILLISECONDS
Definition: Def.h:38
Forward declare nlohmann types.
Definition: Def.h:58
Definition: Def.h:86
Definition: Def.h:83
std::vector< Byte > ByteArray
Definition: Def.h:49
constexpr k16u GO_PXL_SDK_DEFAULT_GDP_SERVER_PORT
Definition: Def.h:40
kByte Byte
Definition: Def.h:48
Definition: Def.h:46