Salome HOME
Task 5.1.7: To be able to export a part to a file and import it into an existing...
[modules/shaper.git] / src / ModelAPI / ModelAPI_Document.h
index 071d2284ce67fdd9b48d8bfab0dc93d787501ea6..6900965d5104c84795f3d96689029be5b19ad14b 100644 (file)
@@ -262,10 +262,13 @@ public:
   /// Loads the OCAF document from the file into the current document.
   /// All the features are added after the active feature.
   /// \param theFileName name of the file to import
+  /// \param theImported list of features imported from the file
   /// \param theCheckBefore verify the document does not contain unappropriate features
   ///                       (useful for import to PartSet)
   /// \returns true if file was loaded successfully
-  MODELAPI_EXPORT virtual bool import(const char* theFileName, bool theCheckBefore = false) = 0;
+  MODELAPI_EXPORT virtual bool import(const char* theFileName,
+                                      std::list<std::shared_ptr<ModelAPI_Feature> >& theImported,
+                                      bool theCheckBefore = false) = 0;
 
   /// Export the list of features to the file
   /// \param theFilename path to save the file