28 #ifndef _SALOME_PARALLEL_COMPONENT_I_HXX_
29 #define _SALOME_PARALLEL_COMPONENT_I_HXX_
37 #include <sys/types.h>
40 #include <SALOMEconfig.h>
42 #include "SALOME_PACOExtensionPaCO_Engines_Parallel_Component_server.hxx"
51 # if defined CONTAINER_EXPORTS || defined SalomeParallelContainer_EXPORTS
52 # define CONTAINER_EXPORT __declspec( dllexport )
54 # define CONTAINER_EXPORT __declspec( dllimport )
57 # define CONTAINER_EXPORT
61 public virtual Engines::Parallel_Component_serv,
62 public virtual PortableServer::RefCountServantBase
66 PortableServer::POA_ptr poa,
67 PortableServer::ObjectId * contId,
68 const char *instanceName,
69 const char *interfaceName,
78 char* interfaceName();
84 Engines::Container_ptr GetContainerRef();
89 void Names(
const char * graphName ,
const char * nodeName ) ;
94 CORBA::Long CpuUsed_impl() ;
97 CORBA::Boolean isPublished,
98 CORBA::Boolean isMultiFile,
99 CORBA::Boolean& isValidScript);
102 virtual Engines::Salome_file_ptr getInputFileToService(
const char* service_name,
103 const char* Salome_file_name);
104 virtual Engines::Salome_file_ptr getOutputFileToService(
const char* service_name,
105 const char* Salome_file_name);
107 virtual void checkInputFilesToService(
const char* service_name);
108 virtual Engines::Salome_file_ptr setInputFileToService(
const char* service_name,
109 const char* Salome_file_name);
111 virtual void checkOutputFilesToService(
const char* service_name);
112 virtual Engines::Salome_file_ptr setOutputFileToService(
const char* service_name,
113 const char* Salome_file_name);
115 void send_parallel_proxy_object(CORBA::Object_ptr proxy_ref);
119 virtual char*
getObjectInfo(CORBA::Long studyId,
const char* entry) {
return ""; }
123 PortableServer::ObjectId * getId();
126 bool setStudyId(CORBA::Long studyId);
127 static bool isMultiStudy();
128 static bool isMultiInstance();
129 static std::string GetDynLibraryName(
const char *componentName);
131 void beginService(
const char *serviceName);
132 void endService(
const char *serviceName);
133 void sendMessage(
const char *event_type,
const char *message);
136 bool Killer( pthread_t ThreadId ,
int signum );
141 void wait_parallel_object_proxy();
142 char * get_parallel_proxy_object();
144 virtual void configureSalome_file(std::string service_name,
145 std::string file_port_name,
146 Engines::Parallel_Salome_file_proxy_impl * file);
158 PortableServer::ObjectId *
_id;
201 pthread_t* _ThreadId ;