1 // Copyright (C) 2007 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : Parallel_Salome_file_i.hxx
22 // Author : André RIBES, EDF
26 #ifndef _PARALLEL_SALOME_FILE_I_HXX_
27 #define _PARALLEL_SALOME_FILE_I_HXX_
29 #include <SALOMEconfig.h>
30 #include <SALOME_Container.hxx>
34 #include "SALOME_ComponentPaCO_Engines_Parallel_Salome_file_server.h"
35 #include "Salome_file_i.hxx"
37 class CONTAINER_EXPORT Parallel_Salome_file_i:
38 public virtual Salome_file_i,
39 public virtual Engines::Parallel_Salome_file_serv
42 Parallel_Salome_file_i(CORBA::ORB_ptr orb, const char * ior);
43 virtual ~Parallel_Salome_file_i();
45 virtual void setFileNode(const char* file_name, CORBA::Long node);
46 virtual CORBA::Long getFileNode(const char* file_name);
47 virtual Engines::Container_ptr updateFile(const Engines::file& file);
49 // New implementation for these methods
50 // For the parallel cases
51 virtual void load(const char* hdf5_file);
52 virtual void save(const char* hdf5_file);
53 virtual void save_all(const char* hdf5_file);
54 virtual void connect(Engines::Salome_file_ptr source_Salome_file);
55 virtual void connectDistributedFile(const char * file_name,
56 Engines::Salome_file_ptr source_Salome_file);
57 virtual void setDistributedSourceFile(const char* file_name,
58 const char * source_file_name);
59 virtual void recvFiles();
60 virtual void recvFiles_node();
61 virtual void setContainer(Engines::Container_ptr container);
62 //virtual void removeFile(const char* file_name);
63 //virtual void removeFiles();
66 virtual bool getParallelDistributedFile(std::string file_name);
69 Engines::Parallel_Salome_file_var proxy;
70 Engines::PaCO_Parallel_Salome_file * parallel_file;