+ MODEL_EXPORT virtual void redo();
+
+ //! Adds to the document the new feature of the given feature id
+ //! \param creates feature and puts it in the document
+ MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Feature> addFeature(std::string theID);
+
+ //! Returns the existing feature by the label
+ //! \param theLabel base label of the feature
+ MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Feature> feature(TDF_Label& theLabel);
+
+ //! Adds a new sub-document by the identifier, or returns existing one if it is already exist
+ MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Document> subDocument(std::string theDocID);
+
+ ///! Returns the id of hte document
+ MODEL_EXPORT virtual const std::string& id() const {return myID;}
+
+ //! Returns the feature in the group by the index (started from zero)
+ MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Feature>
+ feature(const std::string& theGroupID, const int theIndex);
+
+ //! Returns the number of features in the group
+ MODEL_EXPORT virtual int size(const std::string& theGroupID);
+
+ ///! Returns the vector of groups already added to the document
+ MODEL_EXPORT virtual const std::vector<std::string>& getGroups() const;
+
+ //! Returns the index of feature in the group (zero based)
+ //! \retruns -1 if not found
+ MODEL_EXPORT virtual int featureIndex(boost::shared_ptr<ModelAPI_Feature> theFeature);