SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
UpdateKeyValuesDelegate.h
1 #ifndef CBE__delegate__UpdateKeyValuesDelegate_h__
2 #define CBE__delegate__UpdateKeyValuesDelegate_h__
3 
4 #include "cbe/QueryResult.h"
5 #include "cbe/Types.h"
6 
7 #include "cbe/delegate/Error.h"
8 
9 #include "cbe/util/Context.h"
10 #include "cbe/util/ErrorInfo.h"
11 #include "cbe/util/Exception.h"
12 
13 #include <memory>
14 
15 namespace cbe {
16  namespace delegate {
24 public:
25  using Success = cbe::Object;
30  virtual void onUpdateKeyValuesSuccess(cbe::Object&& object) = 0;
31 
32  using Error = delegate::Error;
36  virtual void onUpdateKeyValuesError(Error&& error,
37  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::UpdateKeyValuesException
55 #endif // #ifndef CBE_NO_SYNC
56 
57  virtual ~UpdateKeyValuesDelegate();
58 }; // class UpdateKeyValuesDelegate
59 
66 using UpdateKeyValuesDelegatePtr = std::shared_ptr<UpdateKeyValuesDelegate>;
67  } // namespace delegate
68 } // namespace cbe
69 
70 #endif // !CBE__delegate__UpdateKeyValuesDelegate_h__
Holder of a set of data, can represent a table row.
Definition: Object.h:64
Definition: Error.h:14
Definition: UpdateKeyValuesDelegate.h:23
virtual void onUpdateKeyValuesError(Error &&error, cbe::util::Context &&context)=0
virtual void onUpdateKeyValuesSuccess(cbe::Object &&object)=0
std::shared_ptr< UpdateKeyValuesDelegate > UpdateKeyValuesDelegatePtr
Definition: UpdateKeyValuesDelegate.h:66
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: UpdateKeyValuesDelegate.h:42
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38