SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
RemoveRoleDelegate.h
1 #ifndef CBE__delegate__RemoveRoleDelegate_h__
2 #define CBE__delegate__RemoveRoleDelegate_h__
3 
4 #include <memory>
5 #include "cbe/QueryResult.h"
6 #include "cbe/Types.h"
7 #include "cbe/delegate/Error.h"
8 #include "cbe/util/Context.h"
9 #include "cbe/util/ErrorInfo.h"
10 #include "cbe/util/Exception.h"
11 
12 namespace cbe {
13  namespace delegate {
21  public:
22  using Success = cbe::RoleId;
27  virtual void onRemoveRoleSuccess(cbe::RoleId&& roleId) = 0;
28 
29  using Error = delegate::Error;
33  virtual void onRemoveRoleError(Error&& error,
34  cbe::util::Context&& context) = 0;
35 
40  using Base::Base; // Inherit base class' constructors
41  }; // struct ErrorInfo
42 
43 #ifndef CBE_NO_SYNC
49  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
50  using Base::Base; // Inherit base class' constructors
51  }; // class struct CloudBackend::RemoveRoleException
52 #endif // #ifndef CBE_NO_SYNC
53 
54  virtual ~RemoveRoleDelegate();
55  }; // class RemoveRoleDelegate
60  using RemoveRoleDelegatePtr = std::shared_ptr<RemoveRoleDelegate>;
61  } // namespace delegate
62 } // namespace cbe
63 
64 #endif // !CBE__delegate__RemoveRoleDelegate_h__
Definition: Error.h:14
Definition: RemoveRoleDelegate.h:20
virtual void onRemoveRoleError(Error &&error, cbe::util::Context &&context)=0
virtual void onRemoveRoleSuccess(cbe::RoleId &&roleId)=0
std::shared_ptr< RemoveRoleDelegate > RemoveRoleDelegatePtr
Definition: RemoveRoleDelegate.h:60
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
std::uint64_t RoleId
Uniquely identifies the Role.
Definition: Types.h:108
Definition: RemoveRoleDelegate.h:39
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38