SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
QueryDelegate.h
1 #ifndef CBE__delegate__QueryDelegate_h__
2 #define CBE__delegate__QueryDelegate_h__
3 
4 #include "cbe/QueryResult.h"
5 #include "cbe/Types.h"
6 #include "cbe/delegate/QueryError.h"
7 
8 
9 #include "cbe/util/Context.h"
10 #include "cbe/util/ErrorInfo.h"
11 #include "cbe/util/Exception.h"
12 
13 namespace cbe {
14  namespace delegate {
15 
40 public:
41  using Success = cbe::QueryResult;
46  virtual void onQuerySuccess(cbe::QueryResult&& queryResult) = 0;
47 
48  using Error = QueryError;
56  cbe::util::Context&& context) = 0;
57 
62  using Base::Base; // Inherit base class' constructors
63  }; // struct ErrorInfo
64 
65 #ifndef CBE_NO_SYNC
84  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
85  using Base::Base; // Inherit base class' constructors
86  }; // class struct CloudBackend::LogInException
87 #endif // #ifndef CBE_NO_SYNC
88 
89  virtual ~QueryDelegate();
90 }; // class QueryDelegate
91 
100 using QueryDelegatePtr = std::shared_ptr<QueryDelegate>;
101 
102 
103  } // namespace delegate
104 } // namespace cbe
105 
106 
107 #endif // #ifndef CBE__delegate__QueryDelegate_h__
resultset of data retrieved.
Definition: QueryResult.h:51
Definition: QueryDelegate.h:39
virtual void onQueryError(cbe::delegate::QueryError &&error, cbe::util::Context &&context)=0
virtual void onQuerySuccess(cbe::QueryResult &&queryResult)=0
Definition: QueryError.h:20
std::shared_ptr< QueryDelegate > QueryDelegatePtr
Definition: QueryDelegate.h:100
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: QueryDelegate.h:61
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38