X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FCDMUtilities.h;h=99dd04c4a8e034a13f6427cbb9c74eefdb59edc7;hb=3e4f251c978672bd542f132e255d08b75eea52d1;hp=4b18fcb2ec6e26e30e510bdc528fc3e5f3051aee;hpb=c1c0272929da71783e2d520a24acfb23fe8e24a5;p=crea.git diff --git a/lib/creaDevManagerLib/CDMUtilities.h b/lib/creaDevManagerLib/CDMUtilities.h index 4b18fcb..99dd04c 100644 --- a/lib/creaDevManagerLib/CDMUtilities.h +++ b/lib/creaDevManagerLib/CDMUtilities.h @@ -58,7 +58,7 @@ namespace CDMUtilities */ #ifdef _WIN32 // ------ Windows - //TODO: implementation for windows + static std::string TEXT_EDITOR = "notepad"; #elif __APPLE__ // ------ Apple //TODO: implementation for apple @@ -71,7 +71,7 @@ namespace CDMUtilities */ #ifdef _WIN32 // ------ Windows - //TODO: implementation for windows + static std::string FILE_EXPLORER = "explorer"; #elif __APPLE__ // ------ Apple //TODO: implementation for apple @@ -84,7 +84,7 @@ namespace CDMUtilities */ #ifdef _WIN32 // ------ Windows - //TODO: implementation for windows + static std::string TERMINAL = "start cmd.exe"; #elif __APPLE__ // ------ Apple //TODO: implementation for apple @@ -170,6 +170,12 @@ namespace CDMUtilities * @return True if the class was successfully created. */ bool createEmptyClass(const std::string& name, const std::string& path); + /** + * Creates a string replacing each \ by double \ . + * @param line String to stringify. + * @return line stringified. + */ + std::string stringify(const std::string& line); }; #endif /* CDMUTILITIES_H_ */