Skip to content

Commit

Permalink
Organize header for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 12, 2024
1 parent 29ed70d commit 2920de1
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions source/MaterialXCore/Document.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,37 @@ class MX_CORE_API Document : public GraphElement
return doc;
}

/// Get a list of source URI's referenced by the document
StringSet getReferencedSourceUris() const;

/// @name Data Libraries
/// @{

/// Import the given document as a library within this document.
/// The contents of the library document are copied into this one, and
/// are assigned the source URI of the library.
/// @param library The library document to be imported.
void importLibrary(const ConstDocumentPtr& library);

/// Get a list of source URI's referenced by the document
StringSet getReferencedSourceUris() const;
/// Store a reference to a data library in this document.
void setDataLibrary(ConstDocumentPtr dataLibrary)
{
_dataLibrary = dataLibrary;
}

/// Return true if this document has a data library.
bool hasDataLibrary() const
{
return (_dataLibrary != nullptr);
}

/// Return the data library, if any, referenced by this document.
ConstDocumentPtr getDataLibrary() const
{
return _dataLibrary;
}

/// @}
/// @name NodeGraph Elements
/// @{

Expand Down Expand Up @@ -591,28 +613,6 @@ class MX_CORE_API Document : public GraphElement
removeChildOfType<UnitTypeDef>(name);
}

/// @}
/// @name Data Libraries
/// @{

/// Store a reference to a data library in this document.
void setDataLibrary(ConstDocumentPtr dataLibrary)
{
_dataLibrary = dataLibrary;
}

/// Return true if this document has a data library.
bool hasDataLibrary() const
{
return (_dataLibrary != nullptr);
}

/// Return the data library, if any, referenced by this document.
ConstDocumentPtr getDataLibrary() const
{
return _dataLibrary;
}

/// @}
/// @name Version
/// @{
Expand Down

0 comments on commit 2920de1

Please sign in to comment.