]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/CDMUtilities.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / CDMUtilities.h
index 4b18fcb2ec6e26e30e510bdc528fc3e5f3051aee..99dd04c4a8e034a13f6427cbb9c74eefdb59edc7 100644 (file)
@@ -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_ */