|
Krita Source Code Documentation
|
#include <kis_meta_data_store.h>
Public Member Functions | |
| bool | addEntry (const Entry &entry) |
| void | applyFilters (const QList< const Filter * > &filters) |
| QHash< QString, Entry >::const_iterator | begin () const |
| bool | containsEntry (const KisMetaData::Schema *schema, const QString &entryName) const |
| bool | containsEntry (const QString &entryKey) const |
| bool | containsEntry (const QString &uri, const QString &entryName) const |
| void | copyFrom (const Store *store) |
| void | debugDump () const |
| bool | empty () const |
| QHash< QString, Entry >::const_iterator | end () const |
| QList< Entry > | entries () const |
| Entry & | getEntry (const KisMetaData::Schema *schema, const QString &entryName) |
| const Entry & | getEntry (const KisMetaData::Schema *schema, const QString &entryName) const |
| Entry & | getEntry (const QString &entryKey) |
| const Entry & | getEntry (const QString &entryKey) const |
| Entry & | getEntry (const QString &uri, const QString &entryName) |
| const Entry & | getEntry (const QString &uri, const QString &entryName) const |
| const Value & | getValue (const QString &uri, const QString &entryName) const |
| bool | isEmpty () const |
| QList< QString > | keys () const |
| void | removeEntry (const KisMetaData::Schema *schema, const QString &entryName) |
| void | removeEntry (const QString &entryKey) |
| void | removeEntry (const QString &uri, const QString &entryName) |
| Store () | |
| Store (const Store &) | |
| ~Store () | |
Private Attributes | |
| Private *const | d |
This class holds the list of metadata entries and schemas (for instance the author of the image, copyright holder, license, aperture, speed...)
Definition at line 26 of file kis_meta_data_store.h.
| Store::Store | ( | ) |
Definition at line 30 of file kis_meta_data_store.cc.
| KisMetaData::Store::Store | ( | const Store & | ) |
| Store::~Store | ( | ) |
| bool Store::addEntry | ( | const Entry & | entry | ) |
Insert a new entry.
| entry | the new entry to insert in the metadata store, it must be a key which doesn't already exist |
Definition at line 60 of file kis_meta_data_store.cc.
References d, dbgMetaData, KisMetaData::Entry::name(), and KisMetaData::Entry::qualifiedName().
Apply a list of filters on a store
Definition at line 188 of file kis_meta_data_store.cc.
References dbgMetaData, and KisMetaData::Filter::filter().
| QHash< QString, Entry >::const_iterator Store::begin | ( | ) | const |
Definition at line 165 of file kis_meta_data_store.cc.
References d.
| bool Store::containsEntry | ( | const KisMetaData::Schema * | schema, |
| const QString & | entryName ) const |
Definition at line 92 of file kis_meta_data_store.cc.
References containsEntry(), and KisMetaData::Schema::generateQualifiedName().
| bool Store::containsEntry | ( | const QString & | entryKey | ) | const |
| entryKey | the entryKey as the qualified name of the entry |
Definition at line 81 of file kis_meta_data_store.cc.
References d.
| bool Store::containsEntry | ( | const QString & | uri, |
| const QString & | entryName ) const |
| uri | |
| entryName |
Definition at line 86 of file kis_meta_data_store.cc.
References containsEntry(), KisMetaData::Schema::generateQualifiedName(), KisMetaData::SchemaRegistry::instance(), and KisMetaData::SchemaRegistry::schemaFromUri().
Copy the entries from store inside this store
Definition at line 45 of file kis_meta_data_store.cc.
References addEntry(), begin(), containsEntry(), end(), getEntry(), KisMetaData::Value::Invalid, KisMetaData::Entry::qualifiedName(), KisMetaData::Value::type(), and KisMetaData::Entry::value().
| void Store::debugDump | ( | ) | const |
Dump on kdDebug the metadata store.
Definition at line 175 of file kis_meta_data_store.cc.
References d, dbgMetaData, and KisMetaData::Entry::isValid().
| bool Store::empty | ( | ) | const |
Definition at line 71 of file kis_meta_data_store.cc.
References d.
| QHash< QString, Entry >::const_iterator Store::end | ( | ) | const |
Definition at line 170 of file kis_meta_data_store.cc.
References d.
| Entry & Store::getEntry | ( | const KisMetaData::Schema * | schema, |
| const QString & | entryName ) |
Give access to a metadata entry
| schema | the schema |
| entryName | the name of the entry |
Definition at line 120 of file kis_meta_data_store.cc.
References KisMetaData::Schema::generateQualifiedName(), and getEntry().
| const Entry & Store::getEntry | ( | const KisMetaData::Schema * | schema, |
| const QString & | entryName ) const |
Give access to a metadata entry
| schema | the schema |
| entryName | the name of the entry |
Definition at line 138 of file kis_meta_data_store.cc.
References KisMetaData::Schema::generateQualifiedName(), and getEntry().
| Entry & Store::getEntry | ( | const QString & | entryKey | ) |
Give access to a metadata entry
| entryKey | the entryKey as the qualified name of the entry |
Definition at line 100 of file kis_meta_data_store.cc.
References d, and KisMetaData::SchemaRegistry::instance().
| const Entry & Store::getEntry | ( | const QString & | entryKey | ) | const |
Give access to a metadata entry
| entryKey | the entryKey as the qualified name of the entry |
Definition at line 126 of file kis_meta_data_store.cc.
References d.
| Entry & Store::getEntry | ( | const QString & | uri, |
| const QString & | entryName ) |
Give access to a metadata entry
| uri | the uri of the schema |
| entryName | the name of the entry |
Definition at line 113 of file kis_meta_data_store.cc.
References getEntry(), KisMetaData::SchemaRegistry::instance(), and KisMetaData::SchemaRegistry::schemaFromUri().
| const Entry & Store::getEntry | ( | const QString & | uri, |
| const QString & | entryName ) const |
Give access to a metadata entry
| uri | the uri of the schema |
| entryName | the name of the entry |
Definition at line 131 of file kis_meta_data_store.cc.
References getEntry(), KisMetaData::SchemaRegistry::instance(), and KisMetaData::SchemaRegistry::schemaFromUri().
| const Value & Store::getValue | ( | const QString & | uri, |
| const QString & | entryName ) const |
Return the value associated with this entry name and uri.
| uri | |
| entryName |
Definition at line 160 of file kis_meta_data_store.cc.
References getEntry(), and KisMetaData::Entry::value().
| bool Store::isEmpty | ( | ) | const |
Definition at line 76 of file kis_meta_data_store.cc.
References d.
| QList< QString > Store::keys | ( | ) | const |
| void Store::removeEntry | ( | const KisMetaData::Schema * | schema, |
| const QString & | entryName ) |
Remove an entry.
| schema | the schema |
| entryName | the name of the entry |
Definition at line 155 of file kis_meta_data_store.cc.
References KisMetaData::Schema::generateQualifiedName(), and removeEntry().
| void Store::removeEntry | ( | const QString & | entryKey | ) |
Remove an entry.
| entryKey | the entryKey as the qualified name of the entry |
Definition at line 143 of file kis_meta_data_store.cc.
References d.
| void Store::removeEntry | ( | const QString & | uri, |
| const QString & | entryName ) |
Remove an entry.
| uri | the uri of the schema |
| entryName | the name of the entry |
Definition at line 148 of file kis_meta_data_store.cc.
References KisMetaData::SchemaRegistry::instance(), removeEntry(), and KisMetaData::SchemaRegistry::schemaFromUri().
|
private |
Definition at line 166 of file kis_meta_data_store.h.