X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcreaDevManagerLib%2FCDMUtilities.h;h=21f66d8d32ef1b7f5f88d9c9d2e4bd07495d5aaf;hb=752294dd30e2ee94f38be513d441f4716509ce13;hp=bed8ed9de7192eac91f73bfdc3bc15d3c69b7ece;hpb=609d8d48cae96384e664ec6b000e8ecfcbad6459;p=crea.git diff --git a/lib/creaDevManagerLib/CDMUtilities.h b/lib/creaDevManagerLib/CDMUtilities.h index bed8ed9..21f66d8 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,8 @@ namespace CDMUtilities int openFileWithCommand(const std::string& file, const std::string& command); int openBBEditor(); int openCreaToolsTools(); - int openTerminal(); + int openTerminal(const std::string& command = ""); + bool createEmptyClass(const std::string& name, const std::string& path); }; #endif /* CDMUTILITIES_H_ */