25 #ifndef _SALOME_FILE_I_HXX_
26 #define _SALOME_FILE_I_HXX_
28 #include <SALOMEconfig.h>
30 #include CORBA_SERVER_HEADER(SALOME_Component)
31 #include CORBA_SERVER_HEADER(SALOME_Exception)
33 #include "SALOME_Container.hxx"
34 #include "SALOME_FileTransfer_i.hxx"
41 public virtual POA_Engines::Salome_file,
public virtual fileTransfer_i
48 virtual void load(
const char* hdf5_file);
49 virtual void save(
const char* hdf5_file);
50 virtual void save_all(
const char* hdf5_file);
53 virtual void setLocalFile(
const char* comp_file_name);
54 virtual void setDistributedFile(
const char* comp_file_name);
57 virtual void connect(Engines::Salome_file_ptr source_Salome_file);
58 virtual void connectDistributedFile(
const char * file_name,
59 Engines::Salome_file_ptr source_Salome_file);
60 virtual void setDistributedSourceFile(
const char* file_name,
61 const char * source_file_name);
64 virtual void recvFiles();
67 virtual void removeFile(
const char* file_name);
68 virtual void removeFiles();
71 virtual void setContainer(Engines::Container_ptr container);
77 virtual CORBA::Long
open(
const char* file_name);
78 virtual void close(CORBA::Long fileId);
83 virtual bool checkLocalFile(std::string file_name);
84 virtual bool getDistributedFile(std::string file_name);
90 typedef std::map<int, FILE*> _t_fileAccess;
93 typedef std::map<std::string, Engines::file> _t_fileManaged;
96 typedef std::map<std::string, Engines::Salome_file_var> _t_fileDistributedSource;
100 _t_fileAccess _fileAccess;
101 _t_fileManaged _fileManaged;
102 _t_fileDistributedSource _fileDistributedSource;
104 Engines::Container_ptr _container;
105 Engines::Salome_file_var _default_source_Salome_file;