Back to index

salome-kernel  6.5.0
Parallel_Salome_file_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : Parallel_Salome_file_i.hxx
00024 //  Author : André RIBES, EDF
00025 //  Module : SALOME
00026 //  $Header: 
00027 //
00028 #ifndef _PARALLEL_SALOME_FILE_I_HXX_
00029 #define _PARALLEL_SALOME_FILE_I_HXX_
00030 
00031 #include <SALOMEconfig.h>
00032 #include <SALOME_Container.hxx>
00033 #include <map>
00034 #include <cstdio>
00035 
00036 #include "SALOME_PACOExtensionPaCO_Engines_Parallel_Salome_file_server.hxx"
00037 #include "Salome_file_i.hxx"
00038 
00039 class CONTAINER_EXPORT Parallel_Salome_file_i:
00040   public virtual Salome_file_i,
00041   public virtual Engines::Parallel_Salome_file_serv
00042 {
00043   public:
00044     Parallel_Salome_file_i(CORBA::ORB_ptr orb, 
00045                            const char * ior,
00046                            int rank);
00047     virtual ~Parallel_Salome_file_i();
00048 
00049     virtual void setFileNode(const char* file_name, CORBA::Long node);
00050     virtual CORBA::Long getFileNode(const char* file_name);
00051     virtual Engines::Container_ptr updateFile(const Engines::file& file);
00052 
00053     // New implementation for these methods
00054     // For the parallel cases
00055     virtual void load(const char* hdf5_file);
00056     virtual void save(const char* hdf5_file);
00057     virtual void save_all(const char* hdf5_file);
00058     virtual void connect(Engines::Salome_file_ptr source_Salome_file);
00059     virtual void connectDistributedFile(const char * file_name,
00060                                         Engines::Salome_file_ptr source_Salome_file);
00061     virtual void setDistributedSourceFile(const char* file_name,
00062                                           const char * source_file_name);
00063     virtual void recvFiles();
00064     virtual void recvFiles_node();
00065     virtual void setContainer(Engines::Container_ptr container);
00066     //virtual void removeFile(const char* file_name);
00067     //virtual void removeFiles();
00068     
00069     // Local C++ methods
00070     virtual bool getParallelDistributedFile(std::string file_name);
00071 
00072   private :
00073     Engines::Parallel_Salome_file_var proxy;
00074     Engines::PaCO_Parallel_Salome_file * parallel_file;
00075 };
00076 
00077 #endif
00078