X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FCDMUtilities.h;h=10509896178dc2cd00e1240313a0b0e612fe9194;hb=7a33a157d7372e4d507cd4a8ec0ae9a1f92d986e;hp=bed8ed9de7192eac91f73bfdc3bc15d3c69b7ece;hpb=609d8d48cae96384e664ec6b000e8ecfcbad6459;p=crea.git diff --git a/lib/creaDevManagerLib/CDMUtilities.h b/lib/creaDevManagerLib/CDMUtilities.h index bed8ed9..1050989 100644 --- a/lib/creaDevManagerLib/CDMUtilities.h +++ b/lib/creaDevManagerLib/CDMUtilities.h @@ -40,6 +40,17 @@ namespace CDMUtilities { + //path slash + #ifdef _WIN32 + // ------ Windows + static std::string SLASH = "\\"; + #elif __APPLE__ + // ------ Apple + static std::string SLASH = "/"; + #else + static std::string SLASH = "/"; + #endif + //text editor program #ifdef _WIN32 // ------ Windows @@ -94,7 +105,7 @@ namespace CDMUtilities int openFileWithCommand(const std::string& file, const std::string& command); int openBBEditor(); int openCreaToolsTools(); - int openTerminal(); + int openTerminal(const std::string& command = ""); }; #endif /* CDMUTILITIES_H_ */