GoPxL SDK
GoNotificationType.h
Go to the documentation of this file.
1 
10 #ifndef GO_PXL_SDK_NOTIFICATIONTYPE_H
11 #define GO_PXL_SDK_NOTIFICATIONTYPE_H
12 
13 #include <GoPxLSdk/Def.h>
14 
15 namespace GoPxLSdk
16 {
17 
19 {
20 public:
21  enum Type : k32s
22  {
25  Changed
26  };
27 
28  GoNotificationType() = default;
29 
30  constexpr GoNotificationType(Type type) : type(type) { }
31 
32  operator Type() const { return type; }
33  constexpr bool operator==(GoNotificationType t) const { return type == t.type; }
34  constexpr bool operator!=(GoNotificationType t) const { return type != t.type; }
35 
36  const std::string ToString() const;
37 
38  static GoNotificationType FromString(const std::string& type);
39 
40 private:
41  Type type;
42 };
43 
44 }
45 
46 #endif
A resource was deleted.
Definition: GoNotificationType.h:24
#define GoPxLSdkClass
Definition: Def.h:35
Declares the general SDK definitions.
Definition: GoNotificationType.h:18
constexpr bool operator!=(GoNotificationType t) const
Definition: GoNotificationType.h:34
Type
Definition: GoNotificationType.h:21
constexpr bool operator==(GoNotificationType t) const
Definition: GoNotificationType.h:33
Definition: Def.h:46
constexpr GoNotificationType(Type type)
Definition: GoNotificationType.h:30
A resource was created.
Definition: GoNotificationType.h:23