-// 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__
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;