Ditto 4.7.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ditto::AttachmentToken Class Reference

Serves as a token for a specific attachment that you can pass to a call to Store::fetch_attachment. More...

#include <AttachmentToken.hpp>

Public Member Functions

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.
 

Detailed Description

Serves as a token for a specific attachment that you can pass to a call to Store::fetch_attachment.

Member Function Documentation

◆ get_id()

std::string ditto::AttachmentToken::get_id ( ) const

Gets the attachment's ID.

Returns
The attachment's ID.

◆ get_len()

uint64_t ditto::AttachmentToken::get_len ( ) const

Gets the attachment's size in bytes.

Returns
The attachment's size in bytes.

◆ get_metadata()

std::map< std::string, std::string > ditto::AttachmentToken::get_metadata ( ) const
inline

Gets the attachment's metadata.

Returns
The attachment's metadata.