GoPxL SDK

- Home
- Files
- Namespace

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
38 constexpr k32u GO_PXL_SDK_DEFAULT_TCP_TIMEOUT_MILLISECONDS = 1000;
39 constexpr k32u GO_PXL_SDK_DEFAULT_CONTROL_PORT = 3600; // Could vary for each GoPxL instance.
40 constexpr k32u GO_PXL_SDK_DEFAULT_GDP_SERVER_PORT = 3601; // Could vary for each GoPxL instance.
41 constexpr k32u GO_PXL_SDK_DEFAULT_WEB_PORT = 8100; // Could vary for each GoPxL instance.
42
43 constexpr k32u GO_PXL_SDK_MILLISECONDS_TO_MICROSECONDS_CONVERSION = 1000;
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>
69 struct adl_serializer;
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
88 using json = basic_json<std::map, std::vector, std::string, bool, std::int64_t, std::uint64_t, double, std::allocator, adl_serializer, std::vector<std::uint8_t>>;
89 }
90
91 #endif
GoPxLSdk::SerialNum
std::string SerialNum
Definition: Def.h:50
GoPxLSdk::ResourcePath
std::string ResourcePath
Definition: Def.h:51
nlohmann::adl_serializer
Definition: Def.h:69
GO_PXL_SDK_MILLISECONDS_TO_MICROSECONDS_CONVERSION
constexpr k32u GO_PXL_SDK_MILLISECONDS_TO_MICROSECONDS_CONVERSION
Definition: Def.h:43
nlohmann::detail::iter_impl
Definition: Def.h:63
GO_PXL_SDK_DEFAULT_GDP_SERVER_PORT
constexpr k32u GO_PXL_SDK_DEFAULT_GDP_SERVER_PORT
Definition: Def.h:40
GO_PXL_SDK_DEFAULT_TCP_TIMEOUT_MILLISECONDS
constexpr k32u GO_PXL_SDK_DEFAULT_TCP_TIMEOUT_MILLISECONDS
Definition: Def.h:38
GO_PXL_SDK_DEFAULT_WEB_PORT
constexpr k32u GO_PXL_SDK_DEFAULT_WEB_PORT
Definition: Def.h:41
nlohmann
Forward declare nlohmann types.
Definition: Def.h:58
GO_PXL_SDK_DEFAULT_CONTROL_PORT
constexpr k32u GO_PXL_SDK_DEFAULT_CONTROL_PORT
Definition: Def.h:39
nlohmann::json_pointer
Definition: Def.h:86
nlohmann::basic_json
Definition: Def.h:83
GoPxLSdk::ByteArray
std::vector< Byte > ByteArray
Definition: Def.h:49
GoPxLSdk::Byte
kByte Byte
Definition: Def.h:48
GoPxLSdk
Definition: Def.h:46