SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
ListRolesDelegate.h
1 #ifndef CBE__delegate__ListRolesDelegate_h__
2 #define CBE__delegate__ListRolesDelegate_h__
3 
4 #include <memory>
5 #include <unordered_map>
6 #include "cbe/QueryResult.h"
7 #include "cbe/Types.h"
8 #include "cbe/Role.h"
9 #include "cbe/delegate/Error.h"
10 #include "cbe/util/Context.h"
11 #include "cbe/util/ErrorInfo.h"
12 #include "cbe/util/Exception.h"
13 
14 namespace cbe {
15  namespace delegate {
23  public:
24  using Roles = std::vector<cbe::Role>;
25  using Success = Roles;
31  virtual void onListRolesSuccess(Roles&& roles) = 0;
32 
33  using Error = delegate::Error;
37  virtual void onListRolesError(Error&& error, cbe::util::Context&& context) = 0;
38 
43  using Base::Base; // Inherit base class' constructors
44  }; // struct ErrorInfo
45 
46 #ifndef CBE_NO_SYNC
52  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
53  using Base::Base; // Inherit base class' constructors
54  }; // class struct CloudBackend::ListRolesException
55 #endif // #ifndef CBE_NO_SYNC
56 
57  virtual ~ListRolesDelegate();
58  }; // class ListRolesDelegate
59 
66  using ListRolesDelegatePtr = std::shared_ptr<ListRolesDelegate>;
67  } // namespace delegate
68 } // namespace cbe
69 
70 #endif // !CBE__delegate__ListRolesDelegate_h__
Definition: Error.h:14
Definition: ListRolesDelegate.h:22
virtual void onListRolesSuccess(Roles &&roles)=0
virtual void onListRolesError(Error &&error, cbe::util::Context &&context)=0
std::shared_ptr< ListRolesDelegate > ListRolesDelegatePtr
Definition: ListRolesDelegate.h:66
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: ListRolesDelegate.h:42
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38