1#ifndef DITTO_ATTACHMENT_TOKEN_H
2#define DITTO_ATTACHMENT_TOKEN_H
18class AttachmentToken {
19 friend class AttachmentFetcher;
20 friend struct AttachmentFetcherCtx;
21 DITTO_DISABLE_DEPRECATED_WARNINGS(
22 "AbstractDocumentPath is deprecated, and will be removed in v5")
23 friend class AbstractDocumentPath;
24 DITTO_REENABLE_WARNINGS
25 friend class DocumentPath;
26 friend class MutableDocumentPath;
49 std::map<std::string, std::string>
get_metadata()
const {
return metadata; }
52 nlohmann::json::binary_t id;
54 std::map<std::string, std::string> metadata;
58 std::unordered_map<std::string, any>
const &map_representation);
Serves as a token for a specific attachment that you can pass to a call to Store::fetch_attachment.
Definition AttachmentToken.hpp:18
std::string get_id() const
Gets the attachment's ID.
uint64_t get_len() const
Gets the attachment's size in bytes.
std::map< std::string, std::string > get_metadata() const
Gets the attachment's metadata.
Definition AttachmentToken.hpp:49
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19