Salome HOME
Issue 0013373: EDF PAL 273 : Option Single/Multi file dump
[modules/kernel.git] / src / ParallelContainer / SALOME_ParallelContainer_i.hxx
index ba014d4582f4618f5ab47373271739ac6b531c8f..552590499e35b6060e4c65d7b1b70d8fbdfaba6a 100644 (file)
@@ -1,4 +1,4 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -22,7 +22,7 @@
 //  SALOME_ParallelContainer : implementation of container and engine for Parallel Kernel
 //  File   : SALOME_ParallelContainer_i.hxx
 //  Author : AndrĂ© RIBES, EDF
-//
+
 #ifndef _SALOME_PARALLEL_CONTAINER_I_HXX_
 #define _SALOME_PARALLEL_CONTAINER_I_HXX_
 
@@ -61,38 +61,44 @@ class CONTAINER_EXPORT Engines_Parallel_Container_i:
 {
 public:
   Engines_Parallel_Container_i(CORBA::ORB_ptr orb, 
-                              char * ior, 
-                              int rank,
-                              PortableServer::POA_ptr poa,
-                              std::string containerName ,
-                              bool isServantAloneInProcess = true);
+                               char * ior, 
+                               int rank,
+                               PortableServer::POA_ptr poa,
+                               std::string containerName ,
+                               bool isServantAloneInProcess = true);
 
   virtual ~Engines_Parallel_Container_i();
 
   // --- CORBA methods
 
-  virtual bool load_component_Library(const char* componentName);
+  virtual bool load_component_Library(const char* componentName, CORBA::String_out reason);
 
-  virtual Engines::Component_ptr
+  virtual Engines::EngineComponent_ptr
   create_component_instance( const char* componentName,
-                            CORBA::Long studyId); // 0 for multiStudy
+                             CORBA::Long studyId); // 0 for multiStudy
 
-  Engines::Component_ptr
+  virtual Engines::EngineComponent_ptr
+  create_component_instance_env( const char* componentName,
+                                 CORBA::Long studyId,          // 0 for multiStudy
+                                 const Engines::FieldsDict& env,
+                                 CORBA::String_out reason);
+
+  Engines::EngineComponent_ptr
   find_component_instance( const char* registeredName,
-                          CORBA::Long studyId); // 0 for multiStudy
+                           CORBA::Long studyId); // 0 for multiStudy
 
-  Engines::Component_ptr
+  Engines::EngineComponent_ptr
   load_impl(const char* nameToRegister,
-           const char* componentName);
+            const char* componentName);
 
   void
   create_paco_component_node_instance(const char* componentName,
-                                     const char* proxy_containerName,
-                                     CORBA::Long studyId); // 0 for multiStudy
+                                      const char* proxy_containerName,
+                                      CORBA::Long studyId); // 0 for multiStudy
 
   void updateInstanceNumber();
 
-  void remove_impl(Engines::Component_ptr component_i);
+  void remove_impl(Engines::EngineComponent_ptr component_i);
   void finalize_removal();
 
   virtual void ping();
@@ -109,17 +115,17 @@ public:
   bool Kill_impl() ;
 
   // --- local C++ methods
-  Engines::Component_ptr
+  Engines::EngineComponent_ptr
   find_or_create_instance(std::string genericRegisterName);
 
-  Engines::Component_ptr
+  Engines::EngineComponent_ptr
   createCPPInstance(std::string genericRegisterName,
-                   void *handle,
-                   int studyId);
+                    void *handle,
+                    int studyId);
 
-  Engines::Component_ptr
+  Engines::EngineComponent_ptr
   createPythonInstance(std::string genericRegisterName,
-                      int studyId);
+                       int studyId);
 
   static bool isPythonContainer(const char* ContainerName);
   static void decInstanceCnt(std::string genericRegisterName);
@@ -132,6 +138,7 @@ public:
 
   virtual Engines::Salome_file_ptr createSalome_file(const char* origFileName);
   void copyFile(Engines::Container_ptr container, const char* remoteFile, const char* localFile);
+  Engines::PyNode_ptr createPyNode(const char* nodeName, const char* code);
 
 protected:
 
@@ -148,7 +155,7 @@ protected:
   bool   _isServantAloneInProcess;
   Engines::fileTransfer_var _fileTransfer;
 
-  typedef std::map<std::string,Engines::Component_var> _listInstances_map_t;
+  typedef std::map<std::string,Engines::EngineComponent_var> _listInstances_map_t;
   typedef std::map<std::string,Engines::fileRef_var> _fileRef_map_t;
   typedef std::map<std::string,Engines::Salome_file_var> _Salome_file_map_t;
   _listInstances_map_t _listInstances_map;
@@ -160,11 +167,10 @@ protected:
   std::map<std::string, PortableServer::ObjectId *> _par_obj_inst_map;
 
   typedef  PortableServer::ObjectId * (*FACTORY_FUNCTION) (CORBA::ORB_ptr, char *, int,
-                                                          PortableServer::POA_ptr, 
-                                                          PortableServer::ObjectId *, 
-                                                          const char *, 
-                                                          const char *);
+                                                           PortableServer::POA_ptr, 
+                                                           PortableServer::ObjectId *, 
+                                                           const char *, 
+                                                           const char *);
 };
 
 #endif
-