SDK  2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
Stream.h
1 /*
2  Copyright © CloudBackend AB 2020-2023.
3 */
4 
5 #ifndef INCLUDE_CBE_STREAM_H_
6 #define INCLUDE_CBE_STREAM_H_
7 
8 #include "cbe/Types.h"
9 
10 #include <string>
11 #include <vector>
12 
13 namespace CBI {
14 class Stream;
15 } // namespace CBI
16 
17 namespace cbe {
18 
24 class Stream {
25 public:
26  //Future get functions and other functionality will be added here.
31 
35  std::size_t length{};
36 
37  Stream();
38  ~Stream();
39 private:
40  friend class Object;
41  Stream(const CBI::Stream& cbiStream);
42  explicit operator CBI::Stream () const;
43  //fix cbiPeer pointer
44 }; // class Stream
45 
49 using Streams = std::vector<cbe::Stream>;
50 
51 } // namespace cbe
52 
53 #endif // INCLUDE_CBE_STREAM_H_
Holder of a set of data, can represent a table row.
Definition: Object.h:64
A data file attached to Object.
Definition: Stream.h:24
cbe::StreamId streamId
Definition: Stream.h:30
std::size_t length
Definition: Stream.h:35
Root namespace for the CloudBackend SDK API.
Definition: Account.h:22
std::vector< cbe::Stream > Streams
Collection of Stream objects.
Definition: Stream.h:49
std::uint64_t StreamId
Uniquely identifies a cbe::Stream.
Definition: Types.h:118