#include <string.h>#include <stdio.h>#include <time.h>#include <sys/types.h>#include <memory>#include <vector>#include <sys/time.h>#include <dlfcn.h>#include <unistd.h>#include <sys/wait.h>#include <errno.h>#include <stdlib.h>#include "utilities.h"#include <SALOMEconfig.h>#include <CORBA_SERVER_HEADER(SALOME_Component)>#include <CORBA_SERVER_HEADER(SALOME_Exception)>#include <pthread.h>#include "OpUtil.hxx"#include "SALOME_Container_i.hxx"#include "SALOME_Component_i.hxx"#include "SALOME_FileRef_i.hxx"#include "SALOME_FileTransfer_i.hxx"#include "Salome_file_i.hxx"#include "SALOME_NamingService.hxx"#include "SALOME_Fake_NamingService.hxx"#include "SALOME_Embedded_NamingService_Client.hxx"#include "SALOME_Embedded_NamingService.hxx"#include "Basics_Utils.hxx"#include "KernelBasis.hxx"#include "PythonCppUtils.hxx"#include "Utils_CorbaException.hxx"#include <Python.h>#include <structmember.h>#include "Container_init_python.hxx"
Macros | |
| #define | LIB "lib" |
| #define | ENGINESO "Engine.so" |
| #define | SEP ':' |
| #define | SLASH '/' |
Functions | |
| void | ActSigIntHandler () |
| void | SigIntHandler (int, siginfo_t *, void *) |
| int | checkifexecutable (const std::string &) |
| int | findpathof (const std::string &path, std::string &pth, const std::string &filename) |
| Find a file by searching in a path. More... | |
| void | EffectiveOverrideEnvironment (const Engines::FieldsDict &env) |
| std::vector< std::pair< std::string, std::string > > | GetOSEnvironment () |
| Engines::vectorOfString_var | FromVecStringCppToCORBA (const std::vector< std::string > &group) |
| std::vector< std::string > | FromCORBAVecStringToCpp (const Engines::vectorOfString &groupOfLogFileNames) |
| void | SetCpuUsed () |
| C++ method: More... | |
| void | CallCancelThread () |
Variables | |
| bool | _Sleeping = false |
| int | _ArgC |
| char ** | _ArgV |
| static PyObject * | _pyCont = nullptr |
| static Engines_Container_SSL_i * | _container_singleton_ssl = nullptr |
| static Engines::Container_var | _container_ref_singleton_ssl |
| #define ENGINESO "Engine.so" |
| #define LIB "lib" |
| #define SEP ':' |
| #define SLASH '/' |
| void ActSigIntHandler | ( | ) |
References SigIntHandler().
Referenced by Abstract_Engines_Container_i::Abstract_Engines_Container_i(), and SigIntHandler().
| void CallCancelThread | ( | ) |
Referenced by SigIntHandler().
| int checkifexecutable | ( | const std::string & | filename | ) |
References pythfilter::filename.
Referenced by Abstract_Engines_Container_i::load_component_ExecutableImplementation().
| void EffectiveOverrideEnvironment | ( | const Engines::FieldsDict & | env | ) |
References MESSAGE.
Referenced by Abstract_Engines_Container_i::createExecutableInstance(), and Abstract_Engines_Container_i::override_environment().
| int findpathof | ( | const std::string & | path, |
| std::string & | pth, | ||
| const std::string & | filename | ||
| ) |
Find a file by searching in a path.
| filename | file name to search |
| path | path to search in |
| pth | the complete file path if found |
References pythfilter::filename, ORBConfigFile::path, SEP, and SLASH.
Referenced by Abstract_Engines_Container_i::load_component_CppImplementation(), and Abstract_Engines_Container_i::load_component_ExecutableImplementation().
| std::vector<std::string> FromCORBAVecStringToCpp | ( | const Engines::vectorOfString & | groupOfLogFileNames | ) |
References TestKernelHelpers::ret.
Referenced by Abstract_Engines_Container_i::addLogFileNameGroup().
| Engines::vectorOfString_var FromVecStringCppToCORBA | ( | const std::vector< std::string > & | group | ) |
References TestKernelHelpers::ret.
Referenced by Abstract_Engines_Container_i::getAllLogFileNameGroups().
| std::vector< std::pair<std::string,std::string> > GetOSEnvironment | ( | ) |
References TestKernelHelpers::ret.
Referenced by Abstract_Engines_Container_i::get_os_environment().
| void SetCpuUsed | ( | ) |
C++ method:
Referenced by SigIntHandler().
| void SigIntHandler | ( | int | what, |
| siginfo_t * | siginfo, | ||
| void * | toto | ||
| ) |
References _Sleeping, ActSigIntHandler(), CallCancelThread(), and SetCpuUsed().
Referenced by ActSigIntHandler().
| int _ArgC |
| char** _ArgV |
|
static |
Referenced by KERNEL::getContainerRefSA(), and KERNEL::getContainerSA().
|
static |
Referenced by KERNEL::getContainerSA().
|
static |
Referenced by Abstract_Engines_Container_i::Abstract_Engines_Container_i(), Abstract_Engines_Container_i::create_python_service_instance(), Abstract_Engines_Container_i::createPyNode(), Abstract_Engines_Container_i::createPyScriptNode(), Abstract_Engines_Container_i::createPythonInstance(), Abstract_Engines_Container_i::load_component_PythonImplementation(), Abstract_Engines_Container_i::locallogfilename(), Abstract_Engines_Container_i::monitoringtimeresms(), Abstract_Engines_Container_i::set_current_directory(), Abstract_Engines_Container_i::setVerbosity(), Abstract_Engines_Container_i::ShutdownCommonPart(), and Abstract_Engines_Container_i::ShutdownNow().
| bool _Sleeping = false |
Referenced by SigIntHandler().