SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
RenameDelegate.h
1 #ifndef CBE__delegate__object__RenameDelegate_h__
2 #define CBE__delegate__object__RenameDelegate_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 {
17  namespace object {
18 
26 public:
27  using Success = cbe::Object;
32  virtual void onRenameSuccess(cbe::Object&& object) = 0;
33 
34  using Error = delegate::Error;
38  virtual void onRenameError(Error&& error, cbe::util::Context&& context) = 0;
39 
44  using Base::Base; // Inherit base class' constructors
45  }; // struct ErrorInfo
46 
47 #ifndef CBE_NO_SYNC
53  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
54  using Base::Base; // Inherit base class' constructors
55  }; // class struct CloudBackend::RenameException
56 #endif // #ifndef CBE_NO_SYNC
57 
58  virtual ~RenameDelegate();
59 }; // class RenameDelegate
64 using RenameDelegatePtr = std::shared_ptr<RenameDelegate>;
65  } // namespace object
66  } // namespace delegate
67 } // namespace cbe
68 
69 #endif // !CBE__delegate__object__RenameDelegate_h__
Holder of a set of data, can represent a table row.
Definition: Object.h:64
Definition: Error.h:14
Definition: RenameDelegate.h:25
virtual void onRenameError(Error &&error, cbe::util::Context &&context)=0
virtual void onRenameSuccess(cbe::Object &&object)=0
std::shared_ptr< RenameDelegate > RenameDelegatePtr
Definition: RenameDelegate.h:64
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38