Salome HOME
Include SalomeMacros.cmake with NO_POLICY_SCOPE to apply policies
[modules/med.git] / idl / MED_Gen.idl
index 3230a35477d656be1fd4d523e90aafa5047746f7..8ce005caa6dc4d7a7cc9dfd4d0c81be9ae8a11c9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2005-2020  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -34,18 +34,42 @@ module MED_ORB
     OP_ERROR                 //!< ERROR: other problems
   };
 
+  typedef sequence<long> PresentationsList;
+
   interface
   MED_Gen : Engines::EngineComponent
   {
-    status addDatasourceToStudy(in SALOMEDS::Study study,
-                                in MEDCALC::DatasourceHandler datasourceHandler)
+    status addDatasourceToStudy(in MEDCALC::DatasourceHandler datasourceHandler)
+      raises (SALOME::SALOME_Exception);
+
+    status registerPresentationField(in long fieldId,
+                                     in string name,
+                                     in string type,
+                                     in string ico,
+                                     in long presentationId)
+      raises (SALOME::SALOME_Exception);
+
+    status registerPresentationMesh(in long meshId,
+                                    in string name,
+                                    in string type,
+                                    in string ico,
+                                    in long presentationId)
+          raises (SALOME::SALOME_Exception);
+
+    status unregisterPresentation(in long presentationId)
       raises (SALOME::SALOME_Exception);
 
-    status registerPresentation(in SALOMEDS::Study study,
-                                in long fieldId,
-                                in string name,
-                                in string label)
+//    PresentationsList getSiblingPresentations(in long presentationId)
+//      raises (SALOME::SALOME_Exception);
+
+    // Get all presentations in study:
+    PresentationsList getStudyPresentations()
       raises (SALOME::SALOME_Exception);
+
+    string getStudyPresentationEntry(in long presentationId)
+      raises (SALOME::SALOME_Exception);
+
+    void cleanUp();
   };
 };