![]() |
XMP Toolkit SDK
6.0.0
|
Version 1 of the interface that supports parsing of the XMP Data Model. More...
#include <IDOMParser.h>
Public Types | |
enum | eActionType { kATAppendAsChildren = 0, kATReplaceChildren = 1, kATAppendOrReplaceChildren = 2, kATInsertBefore = 3, kATInsertAfter = 4, kATReplace = 5 } |
Indicates various types of operations possible while parsing with some node as the context. More... | |
![]() | |
enum | eDataType { kDTNone = 0, kDTBool = 1 << 0, kDTUint64 = 1 << 1, kDTInt64 = 1 << 2, kDTChar = 1 << 3, kDTDouble = 1 << 4, kDTConstCharBuffer = 1 << 5, kDTConstVoidPtr = 1 << 6, kDTAll = 0xFFFFFFFF } |
Indicates various types of parameter values. More... | |
Public Member Functions | |
virtual spIMetadata APICALL | Parse (const char *buffer, sizet bufferLength)=0 |
Parses the buffer contents and creates an XMP DOM node. More... | |
virtual void APICALL | ParseWithSpecificAction (const char *buffer, sizet bufferLength, eActionType actionType, spINode &node)=0 |
Parse the buffer contents and populate the provided node . More... | |
virtual spIDOMParser APICALL | Clone () const =0 |
Virtual copy constructor. More... | |
![]() | |
virtual bool APICALL | RemoveParameter (const uint64 &key)=0 |
Removes a particular parameter if present. More... | |
virtual std::vector< uint64 > APICALL | GetAllParameters () const =0 |
Get all the keys of the parameters associated with the object. More... | |
virtual sizet APICALL | Size () const __NOTHROW__=0 |
Get the number of parameters associated with the object. More... | |
virtual eDataType APICALL | GetDataType (const uint64 &key) const =0 |
Get the value type of a particular parameter. More... | |
virtual void APICALL | SetParameter (const uint64 &key, bool value)=0 |
Add/Change a value of a parameter. More... | |
virtual void APICALL | SetParameter (const uint64 &key, uint64 value)=0 |
virtual void APICALL | SetParameter (const uint64 &key, int64 value)=0 |
virtual void APICALL | SetParameter (const uint64 &key, double value)=0 |
virtual void APICALL | SetParameter (const uint64 &key, char value)=0 |
virtual void APICALL | SetParameter (const uint64 &key, const char *value)=0 |
virtual void APICALL | SetParameter (const uint64 &key, const void *value)=0 |
virtual bool APICALL | GetParameter (const uint64 &key, bool &value) const =0 |
Get the value of a parameter if present. More... | |
virtual bool APICALL | GetParameter (const uint64 &key, uint64 &value) const =0 |
virtual bool APICALL | GetParameter (const uint64 &key, int64 &value) const =0 |
virtual bool APICALL | GetParameter (const uint64 &key, double &value) const =0 |
virtual bool APICALL | GetParameter (const uint64 &key, char &value) const =0 |
virtual bool APICALL | GetParameter (const uint64 &key, const char *&value) const =0 |
virtual bool APICALL | GetParameter (const uint64 &key, const void *&value) const =0 |
![]() | |
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... | |
Protected Member Functions | |
virtual | ~IDOMParser_v1 () __NOTHROW__ |
![]() | |
virtual | ~IConfigurable () __NOTHROW__ |
REQ_FRIEND_CLASS_DECLARATION () | |
![]() | |
virtual | ~ISharedObject () __NOTHROW__=0 |
REQ_FRIEND_CLASS_DECLARATION () | |
![]() | |
virtual | ~IVersionable () |
REQ_FRIEND_CLASS_DECLARATION () | |
Additional Inherited Members | |
![]() | |
static uint64 | ConvertCharBufferToUint64 (const char *key) |
Utility function to convert character buffer ( maximum of 8 characters ) to uint64 representation. More... | |
Version 1 of the interface that supports parsing of the XMP Data Model.
Provides all functions to parse the buffer as well as to configure the parser.
Definition at line 26 of file IDOMParser.h.
Indicates various types of operations possible while parsing with some node as the context.
Definition at line 36 of file IDOMParser.h.
|
inlineprotectedvirtual |
|
pure virtual |
Virtual copy constructor.
Creates an exact replica of the object.
|
pure virtual |
Parses the buffer contents and creates an XMP DOM node.
[in] | buffer | Pointer to a constant char buffer containing serialized XMP Data Model. |
[in] | bufferLength | Number of characters in buffer. In case name is null terminated set it to #AdobeXMPCommon::npos. |
|
pure virtual |
Parse the buffer contents and populate the provided node .
[in] | buffer | Pointer to a constant char buffer containing serialized XMP Data Model. |
[in] | bufferLength | Number of characters in buffer. In case name is null terminated set it to #AdobeXMPCommon::npos. |
[in] | actionType | Value indicating how the parsed content and context node should be used. |
[in,out] | node | The context node to be used base on the actionType. |