libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
keepass::Metadata::Field Class Referencefinal

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.
 

Detailed Description

An arbitrary metadata key/value field.

Member Function Documentation

◆ set_last_modification_time()

void keepass::Metadata::Field::set_last_modification_time ( std::optional< std::time_t >  time)
inline

Sets the field last modification time (KDBX 4.1); pass std::nullopt to unset.


The documentation for this class was generated from the following file: