![]() | InDesign SDK 20.5 |
Public Member Functions | |
| ErrorCode | InspectMetaData (IPMUnknown *targetObject, const PMString &namespaceToIterate="", const PMString &pathToIterate="", const IMetaDataAccess::IteratorOptions &iterOptions=IMetaDataAccess::kIterJustChildren) |
| ErrorCode | InspectNode (IMetaDataAccess *metaDataAccess, const PMString &nspace, const PMString &path, PMString &value, const IMetaDataAccess::IteratorOptions &iterOptions=IMetaDataAccess::kIterJustChildren) |
| K2Vector< PMString > | GetAllXMPNameSpaces (IPMUnknown *targetObject) |
| K2Vector< PMString > | GetAllXMPPaths (IPMUnknown *targetObject) |
To find out if the code in this codesnippet will satisfy your use case, refer to the set of use cases documented in SnpPerformXMPCommands.
For XMP technical specifications, refer to the MetaDataToolkit PDF at the XMP Toolkit Download page: http://partners.adobe.com/asn/developer/xmp/download/
| K2Vector< PMString > SnpInspectXMPMetaData::GetAllXMPNameSpaces | ( | IPMUnknown * | targetObject | ) |
Gets all XMP namespaces in the target object.
| targetObject | IN A pointer to an interface on a boss class with the MetaData model (e.g. kDocBoss, kMetaDataBoss) |
| K2Vector< PMString > SnpInspectXMPMetaData::GetAllXMPPaths | ( | IPMUnknown * | targetObject | ) |
Gets all XMP paths in the target object.
| targetObject | IN A pointer to an interface on a boss class with the MetaData model (e.g. kDocBoss, kMetaDataBoss) |
| ErrorCode SnpInspectXMPMetaData::InspectMetaData | ( | IPMUnknown * | targetObject, |
| const PMString & | namespaceToIterate = "", | ||
| const PMString & | pathToIterate = "", | ||
| const IMetaDataAccess::IteratorOptions & | iterOptions = IMetaDataAccess::kIterJustChildren | ||
| ) |
Shows how to navigate MetaData using the IMetaDataAccess interface.
This uses the following interfaces:
| [in] | targetObject | A pointer to an interface on a boss class with the MetaData model (e.g. kDocBoss, kMetaDataBoss) |
| [in] | namespaceToIterate | (optional) Specifies the XMP namespace to iterate. (Default: "", which means visit all nodes) |
| [in] | pathToIterate | (optional) Specifies the XMP path to iterate. (Default: "", which means visit all nodes) |
| [in] | iterOptions | (optional) Specifies the iterator options (Default: IMetaDataAccess::kIterJustChildren) This is ignored if both namespace and path are empty. |
| ErrorCode SnpInspectXMPMetaData::InspectNode | ( | IMetaDataAccess * | metaDataAccess, |
| const PMString & | nspace, | ||
| const PMString & | path, | ||
| PMString & | value, | ||
| const IMetaDataAccess::IteratorOptions & | iterOptions = IMetaDataAccess::kIterJustChildren | ||
| ) |
Inspects a specific node, identified by a namespace and path.
| [in] | metaDataAccess | The IMetaDataAcceess interface to use to access metadata. |
| [in] | nspace | The metadata namespace to inspect. |
| [in] | path | The metadata path to inspect. |
| [out] | value | The value at the namespace and path. |
| [in] | iterOptions | Specifies the iterator options. |