![]() |
XMP Toolkit SDK
6.0.0
|
Version1 of the interface that represents map where each entry consists of prefix string as the key and corresponding nameSpace string as its value. More...
#include <INameSpacePrefixMap.h>
Public Member Functions | |
virtual bool APICALL | Insert (const char *prefix, sizet prefixLength, const char *nameSpace, sizet nameSpaceLength)=0 |
Adds a new pair of prefix string and its corresponding nameSpace string or replace an existing entry. More... | |
virtual bool APICALL | RemovePrefix (const char *prefix, sizet prefixLength)=0 |
Finds the prefix string in the map and removes an entry corresponding to it in the map. More... | |
virtual bool APICALL | RemoveNameSpace (const char *nameSpace, sizet nameSpaceLength)=0 |
Finds the nameSpace string in the map and removes an entry corresponding to it in the map. More... | |
virtual bool APICALL | IsPrefixPresent (const char *prefix, sizet prefixLength) const =0 |
Checks for the existence of a particular prefix in the map. More... | |
virtual bool APICALL | IsNameSpacePresent (const char *nameSpace, sizet nameSpaceLength) const =0 |
Checks for the existence of a particular nameSpace in the map. More... | |
virtual spcIUTF8String APICALL | GetNameSpace (const char *prefix, sizet prefixLength) const =0 |
Gets the nameSpace string corresponding to the prefix string. More... | |
virtual spcIUTF8String APICALL | GetPrefix (const char *nameSpace, sizet nameSpaceLength) const =0 |
Get the prefix string corresponding to the nameSpace string. More... | |
virtual sizet APICALL | Size () const __NOTHROW__=0 |
To get the total number of entries in the map. More... | |
bool | IsEmpty () const __NOTHROW__ |
To check whether the map is empty or not. More... | |
virtual void APICALL | Clear () __NOTHROW__=0 |
Clear all the entries in the map. More... | |
virtual spINameSpacePrefixMap APICALL | Clone () const =0 |
Virtual Copy Constructor. More... | |
![]() | |
virtual void APICALL | Acquire () const __NOTHROW__=0 |
Called by the clients of the object to indicate that he has acquired the shared ownership of the object. More... | |
virtual void APICALL | Release () const __NOTHROW__=0 |
Called by the clients of the object to indicate he has released his shared ownership of the object. If this being the last client than this function should call Destroy to delete and release the memory. More... | |
![]() | |
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... | |
![]() | |
virtual void APICALL | EnableThreadSafety () const __NOTHROW__=0 |
Enables the thread safety on an object. More... | |
virtual void APICALL | DisableThreadSafety () const __NOTHROW__=0 |
Disables the thread safety on an object. More... | |
virtual bool APICALL | IsThreadSafe () const =0 |
Informs whether object can be used across multiple threads or not. More... | |
Static Public Member Functions | |
static XMP_PRIVATE spcINameSpacePrefixMap | GetDefaultNameSpacePrefixMap () |
Provides the default mapping of prefix string and nameSpace strings used by XMPCore. More... | |
static XMP_PRIVATE spINameSpacePrefixMap | CreateNameSpacePrefixMap () |
Creates an empty namespace - prefix map and returns it to the client as a shared pointer. More... | |
Protected Member Functions | |
virtual | ~INameSpacePrefixMap_v1 () __NOTHROW__ |
![]() | |
virtual | ~ISharedObject () __NOTHROW__=0 |
REQ_FRIEND_CLASS_DECLARATION () | |
![]() | |
virtual | ~IVersionable () |
REQ_FRIEND_CLASS_DECLARATION () | |
![]() | |
REQ_FRIEND_CLASS_DECLARATION () | |
Version1 of the interface that represents map where each entry consists of prefix string as the key and corresponding nameSpace string as its value.
Provides all the functions to get/set the entries inside the map.
Definition at line 28 of file INameSpacePrefixMap.h.
|
inlineprotectedvirtual |
|
pure virtual |
Clear all the entries in the map.
|
pure virtual |
Virtual Copy Constructor.
Makes an another object which is exact replica of the existing object.
|
static |
Creates an empty namespace - prefix map and returns it to the client as a shared pointer.
|
static |
Provides the default mapping of prefix string and nameSpace strings used by XMPCore.
|
pure virtual |
Gets the nameSpace string corresponding to the prefix string.
[in] | prefix | Pointer to a const char buffer containing prefix string. |
[in] | prefixLength | Number of characters in prefix. In case prefix is null terminated set it to #AdobeXMPCommon::npos. |
|
pure virtual |
Get the prefix string corresponding to the nameSpace string.
[in] | nameSpace | Pointer to a constant char buffer containing nameSpace string. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
|
pure virtual |
Adds a new pair of prefix string and its corresponding nameSpace string or replace an existing entry.
[in] | prefix | Pointer to a constant char buffer containing prefix string. |
[in] | prefixLength | Number of characters in prefix. In case prefix is null terminated set it to #AdobeXMPCommon::npos. |
[in] | nameSpace | Pointer to a constant char buffer containing nameSpace string. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
bool AdobeXMPCore::INameSpacePrefixMap_v1::IsEmpty | ( | ) | const |
To check whether the map is empty or not.
|
pure virtual |
Checks for the existence of a particular nameSpace in the map.
[in] | nameSpace | Pointer to a constant char buffer containing nameSpace string. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
|
pure virtual |
Checks for the existence of a particular prefix in the map.
[in] | prefix | Pointer to a const char buffer containing prefix string. |
[in] | prefixLength | Number of characters in prefix. In case prefix is null terminated set it to #AdobeXMPCommon::npos. |
|
pure virtual |
Finds the nameSpace string in the map and removes an entry corresponding to it in the map.
[in] | nameSpace | Pointer to a constant char buffer containing nameSpace string. |
[in] | nameSpaceLength | Number of characters in nameSpace. In case nameSpace is null terminated set it to #AdobeXMPCommon::npos. |
|
pure virtual |
Finds the prefix string in the map and removes an entry corresponding to it in the map.
[in] | prefix | Pointer to a const char buffer containing prefix string. |
[in] | prefixLength | Number of characters in prefix. In case prefix is null terminated set it to #AdobeXMPCommon::npos. |
|
pure virtual |
To get the total number of entries in the map.