|
Krita Source Code Documentation
|
#include <kis_meta_data_schema_registry.h>
Public Member Functions | |
| const KisMetaData::Schema * | create (const QString &uri, const QString &prefix) |
| const Schema * | schemaFromPrefix (const QString &prefix) const |
| const Schema * | schemaFromUri (const QString &uri) const |
| SchemaRegistry () | |
| ~SchemaRegistry () | |
Static Public Member Functions | |
| static KisMetaData::SchemaRegistry * | instance () |
Private Attributes | |
| Private *const | d |
Definition at line 20 of file kis_meta_data_schema_registry.h.
| SchemaRegistry::SchemaRegistry | ( | ) |
DO NOT USE! Use instance() instead. This constructor is public only to allow it to be used by Q_GLOBAL_STATIC. Same for the destructor.
Definition at line 33 of file kis_meta_data_schema_registry.cc.
References KoResourcePaths::addAssetType(), create(), KisMetaData::Schema::d, d, errMetaData, KoResourcePaths::findAllAssets(), KisMetaData::Schema::IPTCSchemaUri, KisMetaData::Schema::MakerNoteSchemaUri, KisMetaData::Schema::PhotoshopSchemaUri, KisMetaData::Schema::prefix, schemaFromPrefix(), schemaFromUri(), and KisMetaData::Schema::uri.
| SchemaRegistry::~SchemaRegistry | ( | ) |
| const Schema * SchemaRegistry::create | ( | const QString & | uri, |
| const QString & | prefix ) |
Creates a new schema.
| uri | the name of the schema |
| prefix | the namespace prefix used for this schema |
Definition at line 77 of file kis_meta_data_schema_registry.cc.
References d, schemaFromPrefix(), and schemaFromUri().
|
static |
Return an instance of the SchemaRegistry. Creates an instance if that has never happened before and returns the singleton instance. Initialize it with default schemas.
Definition at line 28 of file kis_meta_data_schema_registry.cc.
| const Schema * SchemaRegistry::schemaFromPrefix | ( | const QString & | prefix | ) | const |
Definition at line 72 of file kis_meta_data_schema_registry.cc.
References d.
| const Schema * SchemaRegistry::schemaFromUri | ( | const QString & | uri | ) | const |
Definition at line 67 of file kis_meta_data_schema_registry.cc.
References d.
|
private |
Definition at line 57 of file kis_meta_data_schema_registry.h.