Ditto 1.1.3
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 DocumentPath;
19 friend class MutableDocumentPath;
20
21 nlohmann::json::binary_t id;
22 uint64_t len;
23 std::map<std::string, std::string> metadata;
24
25 explicit AttachmentToken(const nlohmann::json &info);
26};
27} // namespace ditto
28#endif
These objects are returned by calls to Collection::fetch_attachment.
Definition: AttachmentFetcher.hpp:30
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:26
Provides an interface to specify a path to a key in a document that you can then call various update ...
Definition: MutableDocumentPath.hpp:21
basic_json<> json
default JSON class
Definition: json.hpp:2933