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 d796d86c3abeb57492396080a17ab39705162893..4b5a30b1789b1997d3ed1902d47c4ac2e65179f4 100644 (file)
@@ -1,10 +1,7 @@
-//  Copyright (C) 2003  CEA/DEN, EDF R&D
-//
-//
-//
-//  File   : VISU_Result_i.hh
-//  Author : Alexey PETROV
-//  Module : VISU
+// File:       VISU_Result_i.hh
+// Created:    Fri Jan 10 12:36:38 2003
+// Author:     Alexey PETROV
+//             <apo@ivanox.nnov.matra-dtv.fr>
 
 #ifndef __VISU_RESULT_I_H__
 #define __VISU_RESULT_I_H__
@@ -31,29 +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(std::ostringstream& theStr);
+    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;