SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
MoveDelegate.h
1 #ifndef CBE__delegate__container__MoveDelegate_h__
2 #define CBE__delegate__container__MoveDelegate_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 container {
18 
25 class MoveDelegate {
26 public:
27  using Success = cbe::Container;
32  virtual void onMoveSuccess(cbe::Container&& container) = 0;
33 
34  using Error = delegate::Error;
38  virtual void onMoveError(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::MoveException
56 #endif // #ifndef CBE_NO_SYNC
57 
58  virtual ~MoveDelegate();
59 }; // class MoveDelegate
64 using MoveDelegatePtr = std::shared_ptr<MoveDelegate>;
65  } // namespace container
66  } // namespace delegate
67 } // namespace cbe
68 
69 #endif // !CBE__delegate__container__MoveDelegate_h__
A collection of Item, can also represent a table or folder.
Definition: Container.h:63
Definition: Error.h:14
Definition: MoveDelegate.h:25
virtual void onMoveError(Error &&error, cbe::util::Context &&context)=0
virtual void onMoveSuccess(cbe::Container &&container)=0
std::shared_ptr< MoveDelegate > MoveDelegatePtr
Definition: MoveDelegate.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