|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
An arbitrary metadata key/value field. More...
#include <metadata.hh>
Public Member Functions | |
| Field (std::string key, std::string value) | |
| Creates a metadata field with the given key and value. | |
| Field (const Field &other) | |
| Copy constructor. | |
| Field (Field &&other) noexcept | |
| Move constructor. | |
| const std::string & | key () const |
| Returns the field key. | |
| const std::string & | value () const |
| Returns the field value. | |
| const std::optional< std::time_t > & | last_modification_time () const |
| Returns the field last modification time (KDBX 4.1); empty if unset. | |
| void | set_last_modification_time (std::optional< std::time_t > time) |
| Field & | operator= (const Field &other)=default |
| Copy assignment. | |
| Field & | operator= (Field &&other) noexcept |
| Move assignment. | |
An arbitrary metadata key/value field.
|
inline |
Sets the field last modification time (KDBX 4.1); pass std::nullopt to unset.