Permalink
Browse files

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

Expose String ID Attribute -> UniqueId Map
  • Loading branch information...
2 parents c5e7613 + aadb616 commit a748c0e07e6b8bed78247a6b7b8bb780a6fe5a4d @RemiArnaud RemiArnaud committed on GitHub Jun 30, 2017
@@ -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;
@@ -120,6 +120,11 @@ namespace COLLADASaxFWL
}
//---------------------------------
+ const COLLADASaxFWL::Loader::URIUniqueIdMap& Loader::getUniqueIdMap(void) const
+ {
+ return mURIUniqueIdMap;
+ }
+ //---------------------------------
COLLADAFW::FileId Loader::getFileId( const COLLADABU::URI& uri )
{
// check if the uri is relative

0 comments on commit a748c0e

Please sign in to comment.