|
Ditto
5.1.0
|
Represents an attachment and can be used to insert the associated attachment into a document at a specific key. More...
Public Member Functions | |
| std::vector< uint8_t > | get_data () const |
| Returns the attachment's data as a byte array. More... | |
| bool | copy_to_path (const std::string &dest_path) |
| Copies the attachment to the specified file path. More... | |
| std::map< std::string, std::string > | get_metadata () const |
| Gets the attachment's metadata. More... | |
| std::string | get_id () const |
| Gets the attachment's ID. More... | |
| uint64_t | get_len () const |
| Gets the attachment's size in bytes. More... | |
| DiskUsage & | get_disk_usage () const |
| Provides access to the Attachment's disk usage. More... | |
Represents an attachment and can be used to insert the associated attachment into a document at a specific key.
| bool ditto::Attachment::copy_to_path | ( | const std::string & | dest_path | ) |
Copies the attachment to the specified file path.
| The | path that the attachment should be copied to. |
| std::vector<uint8_t> ditto::Attachment::get_data | ( | ) | const |
Returns the attachment's data as a byte array.
| DiskUsage& ditto::Attachment::get_disk_usage | ( | ) | const |
Provides access to the Attachment's disk usage.
DiskUsage object. | std::string ditto::Attachment::get_id | ( | ) | const |
Gets the attachment's ID.
| uint64_t ditto::Attachment::get_len | ( | ) | const |
Gets the attachment's size in bytes.
| std::map<std::string, std::string> ditto::Attachment::get_metadata | ( | ) | const |
Gets the attachment's metadata.