@@ -529,6 +529,24 @@ namespace sdf
529529 private: const std::vector<std::pair<std::optional<sdf::NestedInclude>,
530530 sdf::InterfaceModelConstPtr>> &MergedInterfaceModels () const ;
531531
532+ // / \brief Get whether the model was merge-included and needs to be
533+ // / processed to carry out the merge.
534+ // / \return True if the model was merge-included.
535+ private: bool IsMerged () const ;
536+
537+ // / \brief Prepare the model to be merged into the parent model or world.
538+ // / As part of the perparation, this will create the proxy frame that would
539+ // / be need to be added to the parent object.
540+ // / \param[out] _errors A list of errors encountered during the operation.
541+ // / \param[in] _parentOfProxyFrame Name of parent of the proxy frame that
542+ // / will be created. This can only be "__model__" or "world".
543+ // / \return The proxy frame for the merged model that will need to be added
544+ // / to the parent object.
545+ // / \note This is a destructive call. After this call, the model will be in
546+ // / an invalid state unless it is merged into the parent object.
547+ private: sdf::Frame PrepareForMerge (sdf::Errors &_errors,
548+ const std::string &_parentOfProxyFrame);
549+
532550 // / \brief Allow Root::Load, World::SetPoseRelativeToGraph, or
533551 // / World::SetFrameAttachedToGraph to call SetPoseRelativeToGraph and
534552 // / SetFrameAttachedToGraph
0 commit comments