SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
RemoveDelegate.h
1 #ifndef CBE__delegate__container__RemoveDelegate_h__
2 #define CBE__delegate__container__RemoveDelegate_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 class RemoveSuccess;
26 public:
27  using Success = RemoveSuccess;
33  virtual void onRemoveSuccess(cbe::ItemId containerId, std::string name) = 0;
34 
35  using Error = delegate::Error;
39  virtual void onRemoveError(Error&& error, cbe::util::Context&& context) = 0;
40 
45  using Base::Base; // Inherit base class' constructors
46  }; // struct ErrorInfo
47 
48 #ifndef CBE_NO_SYNC
54  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
55  using Base::Base; // Inherit base class' constructors
56  }; // class struct RemoveDelegate::RemoveException
57 #endif // #ifndef CBE_NO_SYNC
58 
59  virtual ~RemoveDelegate();
60 }; // class RemoveDelegate
67 using RemoveDelegatePtr = std::shared_ptr<RemoveDelegate>;
68 
75 public:
76  cbe::ItemId containerId{};
77  std::string name{};
78 
79  RemoveSuccess();
81  RemoveSuccess(cbe::ItemId containerId, std::string name);
82 }; // struct RemoveSuccess
83 
84  } // namespace container
85  } // namespace delegate
86 } // namespace cbe
87 
88 #endif // !CBE__delegate__container__RemoveDelegate_h__
Definition: Error.h:14
Definition: RemoveDelegate.h:25
virtual void onRemoveError(Error &&error, cbe::util::Context &&context)=0
virtual void onRemoveSuccess(cbe::ItemId containerId, std::string name)=0
Convenience type that bundles all parameters passed to method cbe::delegate::container::RemoveDelegat...
Definition: RemoveDelegate.h:74
std::shared_ptr< RemoveDelegate > RemoveDelegatePtr
Definition: RemoveDelegate.h:67
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
std::uint64_t ItemId
Id of a cbe::Container or cbe::Object.
Definition: Types.h:88
DefaultCtor
Default constructor marker.
Definition: Types.h:204
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38