Ditto 4.4.4
Loading...
Searching...
No Matches
AttachmentToken.hpp
1#ifndef _DITTO_ATTACHMENT_TOKEN_
2#define _DITTO_ATTACHMENT_TOKEN_
3
4#include "json.hpp"
5
6#include <map>
7#include <string>
8#include <vector>
9
10namespace ditto {
11
17 friend class AttachmentFetcher;
18 friend class AbstractDocumentPath;
19 friend class DocumentPath;
20 friend class MutableDocumentPath;
21
22 nlohmann::json::binary_t id;
23 uint64_t len;
24 std::map<std::string, std::string> metadata;
25
26 explicit AttachmentToken(const nlohmann::json &info);
27};
28} // namespace ditto
29#endif
Provides an interface to specify a path to a key in a document that you can then call various update ...
Definition AbstractDocumentPath.hpp:21
These objects are returned by calls to Collection::fetch_attachment.
Definition AttachmentFetcher.hpp:31
Serves as a token for a specific attachment that you can pass to a call to Collection::fetch_attachme...
Definition AttachmentToken.hpp:16
Provides an interface to specify a path to a key in a document that you can then call a function on t...
Definition DocumentPath.hpp:30
Provides an interface to specify a path to a key in a document that you can then call various update ...
Definition MutableDocumentPath.hpp:31
basic_json<> json
default JSON class
Definition json.hpp:2933