Ditto 4.13.1
 
Loading...
Searching...
No Matches
SingleDocumentLiveQueryEvent.hpp
1#ifndef DITTO_SINGLE_DOCUMENT_LIVE_QUERY_EVENT_H
2#define DITTO_SINGLE_DOCUMENT_LIVE_QUERY_EVENT_H
3
4#include "Document.hpp"
5
6#include <memory>
7#include <string>
8#include <vector>
9
10namespace ditto {
11
19class DITTO_DEPRECATED_BECAUSE(
20 "Use DQL (Ditto Query Language) instead. For more information see: "
21 "https://ditto.com/link/legacy-to-dql-guide") SingleDocumentLiveQueryEvent {
22 DITTO_DISABLE_DEPRECATED_WARNINGS("The legacy query API is deprecated")
23
24 friend class PendingIDSpecificOperation;
25
26 SingleDocumentLiveQueryEvent(bool is_initial,
27 std::shared_ptr<Document> old_document);
28
29public:
35
39 std::shared_ptr<Document> old_document;
40
47 static uint64_t hash(std::shared_ptr<Document> document);
48
57 static std::string hash_mnemonic(std::shared_ptr<Document> document);
58
59 DITTO_REENABLE_WARNINGS
60};
61
62} // namespace ditto
63
64#endif
static std::string hash_mnemonic(std::shared_ptr< Document > document)
Returns a pattern of words that together create a mnemonic, which represents the document.
bool is_initial
Definition SingleDocumentLiveQueryEvent.hpp:34
std::shared_ptr< Document > old_document
Definition SingleDocumentLiveQueryEvent.hpp:39
static uint64_t hash(std::shared_ptr< Document > document)
Returns a hash that represents the document.
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19