SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
CreateContainerDelegate.h
1 #ifndef CBE__delegate__CreateContainerDelegate_h__
2 #define CBE__delegate__CreateContainerDelegate_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::Container;
30  virtual void onCreateContainerSuccess(cbe::Container&& container) = 0;
31 
32  using Error = delegate::Error;
36  virtual void onCreateContainerError(Error&& error, cbe::util::Context&& context) = 0;
37 
42  using Base::Base; // Inherit base class' constructors
43  }; // struct ErrorInfo
44 
45 #ifndef CBE_NO_SYNC
53  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
54  using Base::Base; // Inherit base class' constructors
55  }; // class struct CloudBackend::CreateContainerException
56 #endif // #ifndef CBE_NO_SYNC
57 
58  virtual ~CreateContainerDelegate();
59 }; // class CreateContainerDelegate
60 
67 using CreateContainerDelegatePtr = std::shared_ptr<CreateContainerDelegate>;
68  } // namespace delegate
69 } // namespace cbe
70 
71 #endif // !CBE__delegate__CreateContainerDelegate_h__
A collection of Item, can also represent a table or folder.
Definition: Container.h:63
Definition: CreateContainerDelegate.h:23
virtual void onCreateContainerSuccess(cbe::Container &&container)=0
virtual void onCreateContainerError(Error &&error, cbe::util::Context &&context)=0
Definition: Error.h:14
std::shared_ptr< CreateContainerDelegate > CreateContainerDelegatePtr
Definition: CreateContainerDelegate.h:67
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
Definition: CreateContainerDelegate.h:41
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38