Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/visu.git] / src / VISU_I / VISU_Result_i.hh
index 441e82606c1debd69f8aa14d03de9f161cc732eb..4b5a30b1789b1997d3ed1902d47c4ac2e65179f4 100644 (file)
@@ -28,28 +28,28 @@ namespace VISU{
 
     typedef VISU_Convertor InputType;
     typedef vtkUnstructuredGridReader OutputType;
-    enum TSourceId {eRestoredComponent = -2, eRestoredFile = -1, eFile = 1, eComponent = 2};
   private:
-    TSourceId mySourceId;
     InputType *myInput;
     string myName;
     QFileInfo myFileInfo;
+    int myIsRestored;
   protected:
-    virtual Storable* Build(SALOMEDS::SObject_ptr theSObject = NULL) 
-      throw (std::runtime_error&);
+    virtual Storable* Build();
   public:
     virtual Storable* Create(const char* theFileName);
-    virtual Storable* Create(SALOMEDS::SObject_ptr theMedSObject);
+    virtual Storable* Create(SALOME_MED::FIELD_ptr theField);
+    virtual Storable* Create(SALOME_MED::MESH_ptr theMesh);
+    virtual Storable* Create(SALOME_MED::SUPPORT_ptr theSupport);
     virtual Storable* Restore(SALOMEDS::SObject_ptr theSObject, 
                              const string& thePrefix, const Storable::TRestoringMap& theMap)
       throw(std::logic_error&);
     virtual void ToStream(ostrstream& theStr);
     virtual const char* GetComment() const;
     static const string myComment;
-    InputType* GetInput();
-    const string& GetName() const { return myName;}
+    InputType* GetInput() { return myInput;}
+    const char* GetName() const { return myName.c_str();}
     const QFileInfo& GetFileInfo() const { return myFileInfo;}
-    Result_i::TSourceId GetSourceId() const { return mySourceId;}
+    int IsRestored() const { return myIsRestored;}
   private:
     SALOMEDS::SObject_var mySObject;
     SALOMEDS::Study_var myStudyDocument;