GoPxL SDK

- Home
- Files
- Namespace

GoRequestMethod.h
Go to the documentation of this file.
1
9 #ifndef GO_PXL_SDK_REQUESTMETHOD_H
10 #define GO_PXL_SDK_REQUESTMETHOD_H
11
12 #include <kApi/kApiDef.h>
13
14 namespace GoPxLSdk
15 {
16
17 class GoPxLSdkClass GoRequestMethod
18 {
19 public:
20 enum Method : k32s
21 {
22 Create,
23 Read,
24 Update,
25 Delete,
26 Call,
27 Sub,
28 UnSub,
29 StartStream,
30 StopStream
31 };
32
33 GoRequestMethod() = default;
34
35 constexpr GoRequestMethod(Method method) : method(method) { }
36
37 operator Method() const { return method; }
38 constexpr bool operator==(GoRequestMethod r) const { return method == r.method; }
39 constexpr bool operator!=(GoRequestMethod r) const { return method != r.method; }
40
41 std::string ToString();
42
43 private:
44 Method method;
45 };
46
47 }
48
49 #endif
GoPxLSdkClass
#define GoPxLSdkClass
Definition: Def.h:35
GoPxLSdk::GoRequestMethod::operator==
constexpr bool operator==(GoRequestMethod r) const
Definition: GoRequestMethod.h:38
GoPxLSdk::GoRequestMethod::Create
A Create request.
Definition: GoRequestMethod.h:22
GoPxLSdk::GoRequestMethod::Sub
A Subscribe request.
Definition: GoRequestMethod.h:27
GoPxLSdk::GoRequestMethod::Call
A Call request.
Definition: GoRequestMethod.h:26
GoPxLSdk::GoRequestMethod::Delete
A Delete request.
Definition: GoRequestMethod.h:25
GoPxLSdk::GoRequestMethod::operator!=
constexpr bool operator!=(GoRequestMethod r) const
Definition: GoRequestMethod.h:39
GoPxLSdk::GoRequestMethod::GoRequestMethod
constexpr GoRequestMethod(Method method)
Definition: GoRequestMethod.h:35
GoPxLSdk::GoRequestMethod::Update
A Update request.
Definition: GoRequestMethod.h:24
GoPxLSdk::GoRequestMethod
Definition: GoRequestMethod.h:17
GoPxLSdk::GoRequestMethod::UnSub
An Unsubscribe request.
Definition: GoRequestMethod.h:28
GoPxLSdk::GoRequestMethod::StartStream
A Start stream request.
Definition: GoRequestMethod.h:29
GoPxLSdk::GoRequestMethod::Method
Method
Definition: GoRequestMethod.h:20
GoPxLSdk::GoRequestMethod::Read
A Read request.
Definition: GoRequestMethod.h:23
GoPxLSdk
Definition: Def.h:46