Skip to content

Commit

Permalink
Merge pull request #539 from Geopipe/expose-id-map
Browse files Browse the repository at this point in the history
Expose String ID Attribute -> UniqueId Map
  • Loading branch information
RemiArnaud authored Jun 30, 2017
2 parents c5e7613 + aadb616 commit a748c0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions COLLADASaxFrameworkLoader/include/COLLADASaxFWLLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions COLLADASaxFrameworkLoader/src/COLLADASaxFWLLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit a748c0e

Please sign in to comment.