SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
GetStreamsDelegate.h
1 #ifndef CBE__delegate__GetStreamsDelegate_h__
2 #define CBE__delegate__GetStreamsDelegate_h__
3 
4 #include "cbe/QueryResult.h"
5 #include "cbe/Stream.h"
6 #include "cbe/Types.h"
7 
8 #include "cbe/delegate/Error.h"
9 
10 #include "cbe/util/Context.h"
11 #include "cbe/util/ErrorInfo.h"
12 #include "cbe/util/Exception.h"
13 
14 #include <memory>
15 
16 namespace cbe {
17  namespace delegate {
27 public:
28  using Success = cbe::Streams;
34  virtual void onGetStreamsSuccess(cbe::Streams&& streams) = 0;
35 
36  using Error = delegate::Error;
40  virtual void onGetStreamsError(Error&& error,
41  cbe::util::Context&& context) = 0;
42 
47  using Base::Base; // Inherit base class' constructors
48  }; // struct ErrorInfo
49 
50 #ifndef CBE_NO_SYNC
56  struct Exception : cbe::util::ExceptionImpl<ErrorInfo> {
57  using Base::Base; // Inherit base class' constructors
58  }; // class struct CloudBackend::GetStreamsException
59 #endif // #ifndef CBE_NO_SYNC
60 
61  virtual ~GetStreamsDelegate();
62 }; // class GetStreamsDelegate
63 
68 using GetStreamsDelegatePtr = std::shared_ptr<GetStreamsDelegate>;
69  } // namespace delegate
70 } // namespace cbe
71 
72 #endif // !CBE__delegate__GetStreamsDelegate_h__
Definition: Error.h:14
Definition: GetStreamsDelegate.h:26
virtual void onGetStreamsSuccess(cbe::Streams &&streams)=0
virtual void onGetStreamsError(Error &&error, cbe::util::Context &&context)=0
std::shared_ptr< GetStreamsDelegate > GetStreamsDelegatePtr
Definition: GetStreamsDelegate.h:68
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
std::vector< cbe::Stream > Streams
Collection of Stream objects.
Definition: Stream.h:49
Definition: GetStreamsDelegate.h:46
Definition: Context.h:11
Definition: ErrorInfo.h:27
Definition: Exception.h:38