SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
CreateRoleDelegate.h
1 #ifndef CBE__delegate__CreateRoleDelegate_h__
2 #define CBE__delegate__CreateRoleDelegate_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::Role;
27  virtual void onCreateRoleSuccess(cbe::Role&& role) = 0;
28 
29  using Error = delegate::Error;
33  virtual void onCreateRoleError(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::CreateRoleException
52 #endif // #ifndef CBE_NO_SYNC
53 
54  virtual ~CreateRoleDelegate();
55  }; // class CreateRoleDelegate
60  using CreateRoleDelegatePtr = std::shared_ptr<CreateRoleDelegate>;
61  } // namespace delegate
62 } // namespace cbe
63 
64 #endif // !CBE__delegate__CreateRoleDelegate_h__
User role information.
Definition: Role.h:34
Definition: CreateRoleDelegate.h:20
virtual void onCreateRoleError(Error &&error, cbe::util::Context &&context)=0
virtual void onCreateRoleSuccess(cbe::Role &&role)=0
Definition: Error.h:14
std::shared_ptr< CreateRoleDelegate > CreateRoleDelegatePtr
Definition: CreateRoleDelegate.h:60
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: CreateRoleDelegate.h:39
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38