6 #ifndef INCLUDE_CBE_QUERY_RESULT_H_
7 #define INCLUDE_CBE_QUERY_RESULT_H_
15 using QueryResultPtr = std::shared_ptr<CBI::QueryResult>;
16 class ItemEventProtocol;
17 using ItemDelegatePtr = std::shared_ptr<ItemEventProtocol>;
18 class PublishEventProtocol;
20 class ShareEventProtocol;
22 class SubscribeEventProtocol;
37 class QueryJoinDelegate;
101 friend std::ostream& operator<<(std::ostream& os,
127 explicit operator bool()
const;
130 std::shared_ptr<Impl> pImpl{};
135 friend class QueryChainSync;
138 friend CBI::ItemDelegatePtr delegate::createCbiQueryDelegate(
141 friend CBI::ItemDelegatePtr delegate::createCbiQueryDelegate(
144 friend CBI::ItemDelegatePtr delegate::createCbiJoinDelegate(
148 CBI::QueryResult& getCbiPeer()
const;
The session that holds the connection with the cloud.
Definition: CloudBackend.h:47
A collection of Item, can also represent a table or folder.
Definition: Container.h:63
Use to select Item that meets specific criterias when doing a query.
Definition: Filter.h:40
To do a search for Object combining more than one Container table.
Definition: QueryChain.h:32
resultset of data retrieved.
Definition: QueryResult.h:51
std::uint64_t itemsLoaded() const
std::uint64_t containersLoaded() const
std::uint64_t totalCount() const
bool containsItem(ItemId itemId) const
ItemsSnapshot getItemsSnapshot() const
Returns a copy of a vector containing the items for this QueryResult.
std::uint64_t objectsLoaded() const
QueryResult(cbe::DefaultCtor)
Default constructor.
std::vector< Item > ItemsSnapshot
A vector of items to hold a snapshot.
Definition: QueryResult.h:61
Managing Shares.
Definition: ShareManager.h:27
For managing subscriptions.
Definition: SubscribeManager.h:30
std::shared_ptr< ShareDelegate > ShareDelegatePtr
Definition: ShareDelegate.h:70
std::shared_ptr< SubscribeDelegate > SubscribeDelegatePtr
Definition: SubscribeDelegate.h:60
std::shared_ptr< PublishDelegate > PublishDelegatePtr
Definition: PublishDelegate.h:66
std::shared_ptr< JoinDelegate > JoinDelegatePtr
Definition: JoinDelegate.h:67
std::shared_ptr< QueryJoinDelegate > QueryJoinDelegatePtr
Definition: QueryJoinDelegate.h:76
std::shared_ptr< QueryDelegate > QueryDelegatePtr
Definition: QueryDelegate.h:100
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