![]() |
XMP Toolkit SDK
6.0.0
|
Version1 of a interface that represents a factory to create various artifacts of XMP DOM like array, structure, path etc. More...
#include <ICoreObjectFactory.h>
Public Member Functions | |
virtual pINameSpacePrefixMap_base APICALL | CreateNameSpacePrefixMap (pcIError_base &error) __NOTHROW__=0 |
Creates an empty name space prefix map. More... | |
virtual pcINameSpacePrefixMap_base APICALL | GetDefaultNameSpacePrefixMap (pcIError_base &error) __NOTHROW__=0 |
Provides the default mapping of prefix string and nameSpace strings used by XMPCore. More... | |
virtual pcIPathSegment_base APICALL | CreatePropertyPathSegment (const char *nameSpace, sizet nameSpaceLength, const char *name, sizet nameLength, pcIError_base &error) __NOTHROW__=0 |
Creates a normal property path segment.These are essentially all properties (simple, struct and arrays). More... | |
virtual pcIPathSegment_base APICALL | CreateArrayIndexPathSegment (const char *nameSpace, sizet nameSpaceLength, sizet index, pcIError_base &error) __NOTHROW__=0 |
Creates an array index path segment that denotes a specific element of an array. More... | |
virtual pcIPathSegment_base APICALL | CreateQualifierPathSegment (const char *nameSpace, sizet nameSpaceLength, const char *name, sizet nameLength, pcIError_base &error) __NOTHROW__=0 |
Creates a Qualifier path segment, which behaves like a normal property. More... | |
virtual pcIPathSegment_base APICALL | CreateQualifierSelectorPathSegment (const char *nameSpace, sizet nameSpaceLength, const char *name, sizet nameLength, const char *value, sizet valueLength, pcIError_base &error) __NOTHROW__=0 |
Creates a path segment that selects a specific qualifier by its value. For example a specific language in a alternative array of languages. More... | |
virtual pIPath_base APICALL | CreatePath (pcIError_base &error) __NOTHROW__=0 |
Creates an empty IPath object. More... | |
virtual pIPath_base APICALL | ParsePath (const char *path, sizet pathLength, pcINameSpacePrefixMap_base map, pcIError_base &error) __NOTHROW__=0 |
Creates a path from a char buffer which contains the serialized path. More... | |
virtual pISimpleNode_base APICALL | CreateSimpleNode (const char *nameSpace, sizet nameSpaceLength, const char *name, sizet nameLength, const char *value, sizet valueLength, pcIError_base &error) __NOTHROW__=0 |
Creates a simple property node which is not part of any metadata document. More... | |
virtual pIArrayNode_base APICALL | CreateArrayNode (uint32 arrayForm, const char *nameSpace, sizet nameSpaceLength, const char *name, sizet nameLength, pcIError_base &error) __NOTHROW__=0 |
Creates an array node which is not part of any metadata document. More... | |
virtual pIStructureNode_base APICALL | CreateStructureNode (const char *nameSpace, sizet nameSpaceLength, const char *name, sizet nameLength, pcIError_base &error) __NOTHROW__=0 |
Creates a structure node which is not part of any metadata document. More... | |
virtual pIMetadata_base APICALL | CreateMetadata (pcIError_base &error) __NOTHROW__=0 |
Creates an empty IMetadata object. More... | |
virtual pIDOMImplementationRegistry_base APICALL | GetDOMImplementationRegistry (pcIError_base &error) __NOTHROW__=0 |
Provides the reference to the database of Serializers and Parsers available with the library. More... | |
virtual pICoreConfigurationManager_base APICALL | GetCoreConfigurationManager (pcIError_base &error) __NOTHROW__=0 |
Provides access to the configuration manager of the library. More... | |
virtual pIMetadata_base APICALL | ConvertXMPMetatoIMetadata (XMPMetaRef xmpref, pcIError_base &error) __NOTHROW__=0 |
Converts old xmp object to new xmp object. More... | |
virtual XMPMetaRef APICALL | ConvertIMetadatatoXMPMeta (pIMetadata iMeta, pcIError_base &error) __NOTHROW__=0 |
Converts new xmp object to old xmp object. More... | |
![]() | |
virtual pIUTF8String_base APICALL | CreateUTF8String (const char *buf, sizet count, pcIError_base &error) __NOTHROW__=0 |
Creates an IUTF8String object. More... | |
virtual pIError_base APICALL | CreateError (uint32 domain, uint32 code, uint32 severity, pcIError_base &error) __NOTHROW__=0 |
Creates an IError object. More... | |
virtual | ~IObjectFactory_v1 () __NOTHROW__ |
REQ_FRIEND_CLASS_DECLARATION () | |
![]() | |
template<typename requestedInterface > | |
XMP_PRIVATE requestedInterface * | GetInterfacePointer () |
Get the raw pointer to an interface object implementing the requested version. More... | |
template<typename requestedInterface > | |
const XMP_PRIVATE requestedInterface * | GetInterfacePointer () const |
Get the raw pointer to a const interface object implementing the requested version. More... | |
Static Public Member Functions | |
static XMP_PRIVATE pICoreObjectFactory | GetCoreObjectFactory () |
Gets an object of ICoreObjectFactory. More... | |
static XMP_PRIVATE void | DestroyCoreObjectFactory () |
Destroy everything related to core object factory. More... | |
static XMP_PRIVATE void | SetupCoreObjectFactory (pICoreObjectFactory_base coreObjectFactory) |
Sets up the core object factory. More... | |
![]() | |
static XMP_PRIVATE uint64 | GetInterfaceID () |
Returns the unique ID assigned to the interface. More... | |
static XMP_PRIVATE uint32 | GetInterfaceVersion () |
Returns the version of the interface. More... | |
static XMP_PRIVATE pIObjectFactory | MakeObjectFactory (pIObjectFactory_base ptr) |
static XMP_PRIVATE pcIObjectFactory | MakeObjectFactory (pcIObjectFactory_base ptr) |
Protected Member Functions | |
virtual | ~ICoreObjectFactory_v1 () __NOTHROW__ |
![]() | |
virtual | ~IVersionable () |
REQ_FRIEND_CLASS_DECLARATION () | |
Version1 of a interface that represents a factory to create various artifacts of XMP DOM like array, structure, path etc.
Provides all the functions to create instances of various artifacts of XMP DOM and return them as shared pointers to the clients. This is the interface through which clients of the library actually get access to all other interfaces.
Definition at line 27 of file ICoreObjectFactory.h.
|
inlineprotectedvirtual |
|
pure virtual |
Converts new xmp object to old xmp object.
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Converts old xmp object to new xmp object.
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates an array index path segment that denotes a specific element of an array.
Such segments do not have an own name and inherits the namespace from the Array property itself.
[in] | nameSpace | Pointer to a constant char buffer containing name space URI of the property. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
[in] | index | An object of type #AdobeXMP::sizet containting the index of the array element. |
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates an array node which is not part of any metadata document.
[in] | arrayForm | A value indicating the array type |
[in] | nameSpace | Pointer to a constant char buffer containing name space URI of the array node. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
[in] | name | Pointer to a constant char buffer containing local name of the array node. |
[in] | nameLength | Number of characters in name. In case name is null terminated set it to #AdobeXMPCommon::npos. |
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates an empty IMetadata object.
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates an empty name space prefix map.
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates an empty IPath object.
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates a normal property path segment.These are essentially all properties (simple, struct and arrays).
[in] | nameSpace | Pointer to a constant char buffer containing name space URI of the property. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
[in] | name | Pointer to a constant char buffer containing local name of the property. |
[in] | nameLength | Number of characters in name. In case name is null terminated set it to #AdobeXMPCommon::npos. |
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates a Qualifier path segment, which behaves like a normal property.
[in] | nameSpace | Pointer to a constant char buffer containing name space URI of the property. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
[in] | name | Pointer to a constant char buffer containing local name of the property. |
[in] | nameLength | Number of characters in name. In case name is null terminated set it to #AdobeXMPCommon::npos. |
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates a path segment that selects a specific qualifier by its value. For example a specific language in a alternative array of languages.
[in] | nameSpace | Pointer to a constant char buffer containing name space URI of the property. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
[in] | name | Pointer to a constant char buffer containing local name of the property. |
[in] | nameLength | Number of characters in name. In case name is null terminated set it to #AdobeXMPCommon::npos. |
[in] | value | Pointer to a constant char buffer containing value of the language (xml:lang) |
[in] | valueLength | Number of characters in value. In case value is null terminated set it to #AdobeXMPCommon::npos. |
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates a simple property node which is not part of any metadata document.
[in] | nameSpace | Pointer to a constant char buffer containing name space URI of the simple node. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
[in] | name | Pointer to a constant char buffer containing local name of the simple node. |
[in] | nameLength | Number of characters in name. In case name is null terminated set it to #AdobeXMPCommon::npos. |
[in] | value | Pointer to a constant char buffer containing value of the simple node. |
[in] | valueLength | Number of characters in value. In case name is null terminated set it to #AdobeXMPCommon::npos. |
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates a structure node which is not part of any metadata document.
[in] | nameSpace | Pointer to a constant char buffer containing name space URI of the structure node. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
[in] | name | Pointer to a constant char buffer containing local name of the structure node. |
[in] | nameLength | Number of characters in name. In case name is null terminated set it to #AdobeXMPCommon::npos. |
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
static |
Destroy everything related to core object factory.
|
pure virtual |
Provides access to the configuration manager of the library.
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
static |
Gets an object of ICoreObjectFactory.
|
pure virtual |
Provides the default mapping of prefix string and nameSpace strings used by XMPCore.
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Provides the reference to the database of Serializers and Parsers available with the library.
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
pure virtual |
Creates a path from a char buffer which contains the serialized path.
[in] | path | Pointer to a const char buffer containing serialized form of the path. |
[in] | pathLength | Number of characters in the path. In case path in null terminated set it to #AdobeXMPCommon::npos. |
[in] | map | A pointer to a const #IXMPNameSpacePrefixMap_v1 object which will contain the mapping for nameSpaces to prefixes. |
[out] | error | A reference to a pointer to const IError object which will be filled with the error object in case of any error. |
|
static |
Sets up the core object factory.
[in] | coreObjectFactory | A pointer to an #ICoreObjectFactory_v1 object. |