![]() |
Exiv2
|
XMP property reference, implemented as a static class. More...
#include <properties.hpp>
Public Types | |
using | NsRegistry = std::map<std::string, XmpNsInfo> |
Type for the namespace registry. |
Static Public Member Functions | |
static const char * | propertyTitle (const XmpKey &key) |
Return the title (label) of the property. | |
static const char * | propertyDesc (const XmpKey &key) |
Return the description of the property. | |
static TypeId | propertyType (const XmpKey &key) |
Return the type for property key. The default for unknown keys is xmpText. | |
static const XmpPropertyInfo * | propertyInfo (const XmpKey &key) |
Return information for the property for key. | |
static std::string | ns (const std::string &prefix) |
Return the namespace name for the schema associated with prefix. | |
static const char * | nsDesc (const std::string &prefix) |
Return the namespace description for the schema associated with prefix. | |
static const XmpPropertyInfo * | propertyList (const std::string &prefix) |
Return read-only list of built-in properties for prefix. | |
static const XmpNsInfo * | nsInfo (const std::string &prefix) |
Return information about a schema namespace for prefix. Always returns a valid pointer. | |
static std::string | prefix (const std::string &ns) |
Return the (preferred) prefix for schema namespace ns. | |
static void | printProperties (std::ostream &os, const std::string &prefix) |
Print a list of properties of a schema namespace to output stream os. | |
static std::ostream & | printProperty (std::ostream &os, const std::string &key, const Value &value) |
Interpret and print the value of an XMP property. | |
static void | registerNs (const std::string &ns, const std::string &prefix) |
Register namespace ns with preferred prefix prefix. | |
static void | unregisterNs (const std::string &ns) |
Unregister a custom namespace ns. | |
static void | unregisterNs () |
Unregister all custom namespaces. | |
static const XmpNsInfo * | lookupNsRegistry (const XmpNsInfo::Prefix &prefix) |
Get the registered namespace for a specific prefix from the registry. | |
static void | registeredNamespaces (Exiv2::Dictionary &nsDict) |
Get all registered namespaces (for both Exiv2 and XMPsdk) |
Static Public Attributes | |
static std::mutex | mutex_ |
Lock to be used while modifying properties. | |
static NsRegistry | nsRegistry_ |
Namespace registry. |
XMP property reference, implemented as a static class.
|
static |
Return the namespace name for the schema associated with prefix.
prefix | Prefix |
Error | if no namespace is registered with prefix. |
References prefix().
Referenced by prefix(), registerNs(), and unregisterNs().
|
static |
|
static |
|
static |
Return the (preferred) prefix for schema namespace ns.
ns | Schema namespace |
References ns().
Referenced by lookupNsRegistry(), ns(), nsDesc(), nsInfo(), printProperties(), propertyList(), and registerNs().
|
static |
Return the description of the property.
key | The property key |
|
static |
Return information for the property for key.
If the key is a path to a nested property (one which contains a slash, like Xmp.MP.RegionInfo/MPRI
:Regions), determines the innermost element (Xmp.MPRI.Regions
) and returns its property information.
key | The property key |
|
static |
|
static |
Return the title (label) of the property.
key | The property key |
Return the type for property key. The default for unknown keys is xmpText.
key | The property key |
Referenced by Exiv2::Xmpdatum::setValue().
|
static |
Register namespace ns with preferred prefix prefix.
If the prefix is a known or previously registered prefix, the corresponding namespace URI is overwritten.
|
static |
Unregister all custom namespaces.
The function only unregisters namespaces registered earlier, it does not unregister built-in namespaces.
Referenced by Exiv2::XmpParser::terminate().
|
static |
Unregister a custom namespace ns.
The function only has an effect if there is a namespace ns registered earlier, it does not unregister built-in namespaces.
References ns().
|
static |
Lock to be used while modifying properties.