25 #ifndef _SALOME_PARALLEL_CONTAINER_I_HXX_
26 #define _SALOME_PARALLEL_CONTAINER_I_HXX_
28 #include <SALOMEconfig.h>
30 #include "SALOME_PACOExtensionPaCO_Engines_PACO_Container_server.hxx"
39 #include <sys/types.h>
40 #include <omnithread.h>
47 # if defined CONTAINER_EXPORTS || defined SalomeParallelContainer_EXPORTS
48 # define CONTAINER_EXPORT __declspec( dllexport )
50 # define CONTAINER_EXPORT __declspec( dllimport )
53 # define CONTAINER_EXPORT
57 virtual public Engines::PACO_Container_serv,
59 virtual public PortableServer::RefCountServantBase
65 PortableServer::POA_ptr
poa,
67 bool isServantAloneInProcess =
true);
73 virtual bool load_component_Library(
const char* componentName, CORBA::String_out reason);
75 virtual Engines::EngineComponent_ptr
76 create_component_instance(
const char* componentName);
78 virtual Engines::EngineComponent_ptr
79 create_component_instance_env(
const char* componentName,
81 CORBA::String_out reason);
84 create_python_service_instance(
const char* CompName,
85 CORBA::String_out reason);
87 Engines::EngineComponent_ptr
88 find_component_instance(
const char* registeredName);
90 Engines::EngineComponent_ptr
91 load_impl(
const char* nameToRegister,
92 const char* componentName);
95 create_paco_component_node_instance(
const char* componentName,
96 const char* proxy_containerName);
98 void updateInstanceNumber();
100 void remove_impl(Engines::EngineComponent_ptr component_i);
101 void finalize_removal();
107 void logfilename(
const char*
name);
109 virtual void Shutdown();
111 CORBA::Long getPID();
117 Engines::EngineComponent_ptr
118 find_or_create_instance(std::string genericRegisterName);
120 Engines::EngineComponent_ptr
121 createCPPInstance(std::string genericRegisterName,
124 Engines::EngineComponent_ptr
125 createPythonInstance(std::string genericRegisterName);
128 static void decInstanceCnt(std::string genericRegisterName);
131 void set_id(PortableServer::ObjectId *
id) { _id = id;}
133 Engines::fileRef_ptr createFileRef(
const char* origFileName);
134 Engines::fileTransfer_ptr getFileTransfer();
136 virtual Engines::Salome_file_ptr createSalome_file(
const char* origFileName);
137 void copyFile(Engines::Container_ptr
container,
const char* remoteFile,
const char* localFile);
138 Engines::PyNode_ptr createPyNode(
const char* nodeName,
const char* code);
139 Engines::PyNode_ptr getDefaultPyNode(
const char *nodeName);
140 Engines::PyScriptNode_ptr createPyScriptNode(
const char* nodeName,
const char* code);
141 Engines::PyScriptNode_ptr getDefaultPyScriptNode(
const char *nodeName);
151 PortableServer::ObjectId *
_id;
168 typedef PortableServer::ObjectId * (*FACTORY_FUNCTION) (CORBA::ORB_ptr,
char *, int,
169 PortableServer::POA_ptr,
170 PortableServer::ObjectId *,
bool isPythonContainer(const char *ContainerName)
This is no longer valid (C++ container are also python containers)
Definition: SALOME_ContainerManager.cxx:791
#define CONTAINER_EXPORT
Definition: SALOME_ParallelContainer_i.hxx:53
C++ implementation of Engines::Container interface for parallel container implemented with PaCO++.
Definition: SALOME_ParallelContainer_i.hxx:60
std::map< std::string, Engines::Salome_file_var > _Salome_file_map_t
Definition: SALOME_ParallelContainer_i.hxx:159
CORBA::ORB_var _orb
Definition: SALOME_ParallelContainer_i.hxx:149
SALOME_NamingService * _NS
Definition: SALOME_ParallelContainer_i.hxx:144
_Salome_file_map_t _Salome_file_map
Definition: SALOME_ParallelContainer_i.hxx:162
CORBA::Long _pid
Definition: SALOME_ParallelContainer_i.hxx:153
std::map< std::string, Engines::fileRef_var > _fileRef_map_t
Definition: SALOME_ParallelContainer_i.hxx:158
std::string _hostname
Definition: SALOME_ParallelContainer_i.hxx:145
_fileRef_map_t _fileRef_map
Definition: SALOME_ParallelContainer_i.hxx:161
std::map< std::string, Engines::EngineComponent_var > _listInstances_map_t
Definition: SALOME_ParallelContainer_i.hxx:157
std::string _logfilename
Definition: SALOME_ParallelContainer_i.hxx:148
void set_id(PortableServer::ObjectId *id)
Definition: SALOME_ParallelContainer_i.hxx:131
int _numInstance
Definition: SALOME_ParallelContainer_i.hxx:152
Engines::fileTransfer_var _fileTransfer
Definition: SALOME_ParallelContainer_i.hxx:155
std::string _containerName
Definition: SALOME_ParallelContainer_i.hxx:147
bool _isServantAloneInProcess
Definition: SALOME_ParallelContainer_i.hxx:154
PortableServer::ObjectId * _id
Definition: SALOME_ParallelContainer_i.hxx:151
PortableServer::POA_var _poa
Definition: SALOME_ParallelContainer_i.hxx:150
std::string _library_path
Definition: SALOME_ParallelContainer_i.hxx:146
_listInstances_map_t _listInstances_map
Definition: SALOME_ParallelContainer_i.hxx:160
std::map< std::string, PortableServer::ObjectId * > _par_obj_inst_map
Definition: SALOME_ParallelContainer_i.hxx:166
Definition: SALOME_ParallelGlobalProcessVar_i.hxx:46
A class to manage the SALOME naming service.
Definition: SALOME_NamingService.hxx:48
sequence< KeyValuePair > FieldsDict
Definition: SALOME_Component.idl:64
poa
Definition: SALOME_ContainerPy.py:377
containerName
Definition: SALOME_ContainerPy.py:383
container
Definition: TestComponentPy.py:63
string name
Definition: pythfilter.py:56
def getHostName()
Definition: salome_utils.py:130
orb
Definition: salome.py:122