提交 a748c0e0 编写于 作者: R Rémi Arnaud 提交者: GitHub

Merge pull request #539 from Geopipe/expose-id-map

Expose String ID Attribute -> UniqueId Map
......@@ -378,6 +378,11 @@ namespace COLLADASaxFWL
@return The elements COLLADAFW::UniqueId */
COLLADAFW::UniqueId getUniqueId(COLLADAFW::ClassId classId);
/** Returns the map of COLLADAFW::URIs to COLLADAFW::UniqueIds. This can be used, for example,
to figure out the original ID or target attribute of an input element from the relevant UniqueId.
@preturn The URIUniqueIdMap for this loader. */
const URIUniqueIdMap& getUniqueIdMap(void) const;
private:
friend class IFilePartLoader;
friend class FileLoader;
......
......@@ -119,6 +119,11 @@ namespace COLLADASaxFWL
return COLLADAFW::UniqueId(classId, mLoaderUtil.getLowestObjectIdFor(classId), mCurrentFileId);
}
//---------------------------------
const COLLADASaxFWL::Loader::URIUniqueIdMap& Loader::getUniqueIdMap(void) const
{
return mURIUniqueIdMap;
}
//---------------------------------
COLLADAFW::FileId Loader::getFileId( const COLLADABU::URI& uri )
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册