Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Macros | Functions
subprocess_util.cpp File Reference

Utilitaires pour les interactions entre l'application tympan et des sous-processus python. More...

#include <QFile>
#include <QCoreApplication>
#include <QProcess>
#include <QDir>
#include "Tympan/core/defines.h"
#include "Tympan/core/chrono.h"
#include "Tympan/core/logging.h"
#include "Tympan/core/exceptions.h"
#include "subprocess_util.h"
Include dependency graph for subprocess_util.cpp:

Go to the source code of this file.

Macros

#define TYMPAN_REL_CYTHON_PATH   "cython"
 
#define COMPUTATION_TIMEOUT   10000
 

Functions

QStringList _python_qprocess_environment ()
 
QString _get_python_interp ()
 
std::string _read_environment_variables (QStringList env)
 
bool must_keep_tmp_files ()
 
bool init_tmp_file (QTemporaryFile &tmp_file, bool keep_file)
 
bool python (QStringList args, std::string &error_msg)
 

Detailed Description

Utilitaires pour les interactions entre l'application tympan et des sous-processus python.

Definition in file subprocess_util.cpp.

Macro Definition Documentation

◆ COMPUTATION_TIMEOUT

#define COMPUTATION_TIMEOUT   10000

Definition at line 39 of file subprocess_util.cpp.

◆ TYMPAN_REL_CYTHON_PATH

#define TYMPAN_REL_CYTHON_PATH   "cython"

Definition at line 36 of file subprocess_util.cpp.

Function Documentation

◆ _get_python_interp()

QString _get_python_interp ( )

Definition at line 91 of file subprocess_util.cpp.

Here is the caller graph for this function:

◆ _python_qprocess_environment()

QStringList _python_qprocess_environment ( )

Definition at line 41 of file subprocess_util.cpp.

Here is the caller graph for this function:

◆ _read_environment_variables()

std::string _read_environment_variables ( QStringList  env)

Definition at line 116 of file subprocess_util.cpp.

Here is the caller graph for this function:

◆ init_tmp_file()

bool init_tmp_file ( QTemporaryFile &  tmp_file,
bool  keep_file 
)

Definition at line 166 of file subprocess_util.cpp.

Here is the caller graph for this function:

◆ must_keep_tmp_files()

bool must_keep_tmp_files ( )

Definition at line 151 of file subprocess_util.cpp.

Here is the caller graph for this function:

◆ python()

bool python ( QStringList  args,
std::string &  error_msg 
)

Definition at line 179 of file subprocess_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: