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