X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Tools.h;h=54928254e89cc8a1b7080711c9278d3a7dacd592;hb=b6868bbbda720c06441ec8fb3d693413b4ce73f8;hp=2bcb3322855347ec12cc5611ed4e4e403eefe389;hpb=7e53f1f8e2c957ba2af48b650b94b460236e6fc8;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Tools.h b/src/XGUI/XGUI_Tools.h index 2bcb33228..54928254e 100644 --- a/src/XGUI/XGUI_Tools.h +++ b/src/XGUI/XGUI_Tools.h @@ -127,6 +127,14 @@ XGUI_EXPORT XGUI_Workshop* workshop(ModuleBase_IWorkshop* theWorkshop); /// \param thePrs a presentation /// \return string value XGUI_EXPORT QString generateName(const std::shared_ptr& thePrs); + +/// Creates and returns the temporary directory (with random name) using the environment variable +/// path to location of such directories, +std::string getTmpDirByEnv( const char* thePathEnv); + +/// Removes files and directory where they are located +void removeTemporaryFiles(const std::string& theDirectory, + const std::list& theFiles); }; #endif