libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
format_codec.hh File Reference

Registrable format codecs used by the unified KeePass API. More...

#include <functional>
#include <istream>
#include <map>
#include <memory>
#include <mutex>
#include <ostream>
#include "libkeepass/export.hh"

Go to the source code of this file.

Classes

struct  keepass::detail::FormatCodecOptions
 Options that influence codec construction. More...
 
class  keepass::detail::FormatCodec
 Imports/exports one database dialect. More...
 
class  keepass::detail::FormatCodecRegistry
 Process-wide registry of format codec factories. More...
 

Typedefs

using keepass::detail::DatabaseSerializer = FormatCodec
 
using keepass::detail::FormatCodecFactory = std::function< std::unique_ptr< FormatCodec >(const FormatCodecOptions &)>
 

Variables

constexpr int keepass::detail::kFormatKdb = 1
 
constexpr int keepass::detail::kFormatKdbx3 = 2
 
constexpr int keepass::detail::kFormatKdbx4 = 3
 

Detailed Description

Registrable format codecs used by the unified KeePass API.

Typedef Documentation

◆ DatabaseSerializer

using keepass::detail::DatabaseSerializer = typedef FormatCodec

Serializer-facing alias for the format codec abstraction. Database owns only object-model state; all KDB/KDBX/XML knowledge lives in a codec.