Version: 9.15.0
Container_i.cxx File Reference
#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"
Include dependency graph for Container_i.cxx:

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
 

Macro Definition Documentation

◆ ENGINESO

#define ENGINESO   "Engine.so"

◆ LIB

#define LIB   "lib"

◆ SEP

#define SEP   ':'

◆ SLASH

#define SLASH   '/'

Function Documentation

◆ ActSigIntHandler()

void ActSigIntHandler ( )

◆ CallCancelThread()

void CallCancelThread ( )

Referenced by SigIntHandler().

◆ checkifexecutable()

int checkifexecutable ( const std::string &  filename)

◆ EffectiveOverrideEnvironment()

◆ findpathof()

int findpathof ( const std::string &  path,
std::string &  pth,
const std::string &  filename 
)

Find a file by searching in a path.

Parameters
filenamefile name to search
pathpath to search in
pththe complete file path if found
Returns
1 if found 0 if not

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().

◆ FromCORBAVecStringToCpp()

std::vector<std::string> FromCORBAVecStringToCpp ( const Engines::vectorOfString groupOfLogFileNames)

◆ FromVecStringCppToCORBA()

Engines::vectorOfString_var FromVecStringCppToCORBA ( const std::vector< std::string > &  group)

◆ GetOSEnvironment()

std::vector< std::pair<std::string,std::string> > GetOSEnvironment ( )

◆ SetCpuUsed()

void SetCpuUsed ( )

C++ method:

Referenced by SigIntHandler().

◆ SigIntHandler()

void SigIntHandler ( int  what,
siginfo_t *  siginfo,
void *  toto 
)

Variable Documentation

◆ _ArgC

int _ArgC

◆ _ArgV

char** _ArgV

◆ _container_ref_singleton_ssl

Engines::Container_var _container_ref_singleton_ssl
static

◆ _container_singleton_ssl

Engines_Container_SSL_i* _container_singleton_ssl = nullptr
static

Referenced by KERNEL::getContainerSA().

◆ _pyCont

◆ _Sleeping

bool _Sleeping = false

Referenced by SigIntHandler().