X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Document.h;h=cdfa1d75ed89bb6661e2d7e30a239cfc3eab1a88;hb=a5a4efb5a57703a634a60c097b6ab9179a04e6d4;hp=7f224da3e37622a4692823248e35945d27308e81;hpb=9e396b8aa79134aac473c1dc2eb106833d594f47;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Document.h b/src/ModelAPI/ModelAPI_Document.h index 7f224da3e..cdfa1d75e 100644 --- a/src/ModelAPI/ModelAPI_Document.h +++ b/src/ModelAPI/ModelAPI_Document.h @@ -41,11 +41,11 @@ public: virtual boost::shared_ptr addFeature(std::string theID) = 0; //! Removes the feature from the document - virtual void removeFeature(boost::shared_ptr theFeature) = 0; + virtual void removeFeature(boost::shared_ptr theFeature, + const bool theCheck = true) = 0; ///! Adds a new sub-document by the identifier, or returns existing one if it is already exist - virtual boost::shared_ptr - subDocument(std::string theDocID) = 0; + virtual boost::shared_ptr subDocument(std::string theDocID) = 0; ///! Returns the id of the document virtual const std::string& id() const = 0; @@ -54,8 +54,9 @@ public: //! \param theGroupID group that contains an object //! \param theIndex zero-based index of feature in the group //! \param theHidden if it is true, it counts also the features that are not in tree - virtual boost::shared_ptr - object(const std::string& theGroupID, const int theIndex, const bool theHidden = false) = 0; + virtual boost::shared_ptr object(const std::string& theGroupID, + const int theIndex, + const bool theHidden = false) = 0; //! Returns the number of objects in the group of objects //! If theHidden is true, it counts also the features that are not in tree @@ -80,7 +81,7 @@ public: virtual boost::shared_ptr feature( const boost::shared_ptr& theResult) = 0; - protected: +protected: /// Only for SWIG wrapping it is here MODELAPI_EXPORT ModelAPI_Document() {