|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Process-wide registry of format codec factories. More...
#include <format_codec.hh>
Public Member Functions | |
| void | Register (int format, FormatCodecFactory factory) |
| Registers/overwrites the factory for a numeric format id. | |
| std::unique_ptr< FormatCodec > | Create (int format, const FormatCodecOptions &options) const |
Creates a codec for format, or throws UnsupportedFeatureError. | |
| bool | Contains (int format) const |
Returns whether a factory is registered for format. | |
Static Public Member Functions | |
| static FormatCodecRegistry & | Instance () |
| Returns the process-wide registry. | |
Process-wide registry of format codec factories.
The built-in KDB and KDBX codecs are registered by the registry constructor (function-local static initialization, so there is no cross-translation-unit static initialization order problem). Additional dialects may be registered before opening a database.