- virtual Storable* Create(const char* theFileName);
- 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() { return myInput;}
- const char* GetName() const { return myName.c_str();}
- const QFileInfo& GetFileInfo() const { return myFileInfo;}
- int IsRestored() const { return myIsRestored;}
+ virtual
+ size_t
+ IsPossible();
+
+ virtual
+ Storable*
+ Create(const char* theFileName);
+
+ virtual
+ Storable*
+ Create(SALOMEDS::SObject_ptr theMedSObject);
+
+ virtual
+ Storable*
+ Create(SALOME_MED::FIELD_ptr theField);
+
+ virtual
+ Storable*
+ Restore(SALOMEDS::SObject_ptr theSObject,
+ const Storable::TRestoringMap& theMap,
+ const std::string& thePrefix,
+ CORBA::Boolean theIsMultiFile);
+
+ static
+ Storable*
+ StorableEngine(SALOMEDS::SObject_ptr theSObject,
+ const Storable::TRestoringMap& theMap,
+ const std::string& thePrefix,
+ CORBA::Boolean theIsMultiFile);
+
+ virtual
+ void
+ ToStream(std::ostringstream& theStr);
+
+ //---------------------------------------------------------------
+ typedef std::string TFileName;
+ typedef std::vector<TFileName> TFileNames;
+
+ virtual
+ bool
+ Save(SALOMEDS::SComponent_ptr theComponent,
+ const std::string& theURL,
+ bool theIsMultiFile,
+ bool theIsASCII,
+ TFileNames& theFileNames,
+ TFileNames& theFiles);
+
+ //---------------------------------------------------------------
+ virtual
+ CORBA::Boolean
+ CanCopy(SALOMEDS::SObject_ptr theObject);
+
+ virtual
+ bool
+ CopyFrom(SALOMEDS::SObject_ptr theObject,
+ CORBA::Long& theObjectID,
+ const std::string& theTmpDir,
+ TFileNames& theFileNames);
+
+ //---------------------------------------------------------------
+ virtual
+ const char*
+ GetComment() const;
+
+ static const std::string myComment;
+
+ virtual
+ PInput
+ GetInput(const std::string& theMeshName = "",
+ VISU::Entity theEntity = VISU::NONE,
+ const std::string& theFieldName = "",
+ CORBA::Long theTimeStampNumber = -1);
+
+ virtual
+ std::string
+ GetInitFileName() const;
+
+ virtual
+ void
+ SetInitFileName(const std::string& theFileName);
+
+ virtual
+ std::string
+ GetFileName() const;
+
+ QFileInfo
+ GetFileInfo() const;
+
+ ECreationId
+ GetCreationId() const;
+