/**
* Path slash
*/
- #ifdef _WIN32
- // ------ Windows
- static std::string SLASH = "\\";
- #elif __APPLE__
- // ------ Apple
- static std::string SLASH = "/";
- #else
- static std::string SLASH = "/";
- #endif
+#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
- //TODO: implementation for windows
+ static std::string TEXT_EDITOR = "notepad";
#elif __APPLE__
// ------ Apple
//TODO: implementation for apple
*/
#ifdef _WIN32
// ------ Windows
- //TODO: implementation for windows
+ static std::string FILE_EXPLORER = "explorer";
#elif __APPLE__
// ------ Apple
//TODO: implementation for apple
/**
* Terminal program
*/
- #ifdef _WIN32
- // ------ Windows
- //TODO: implementation for windows
- #elif __APPLE__
- // ------ Apple
- //TODO: implementation for apple
- #else
- static std::string TERMINAL = "gnome-terminal";
- #endif
-
+#ifdef _WIN32
+ // ------ Windows
+ static std::string TERMINAL = "start cmd.exe";
+#elif __APPLE__
+ // ------ Apple
+ //TODO: implementation for apple
+#else
+ static std::string TERMINAL = "gnome-terminal";
+#endif
/**
* Structure that handles the split method for c++
* @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_ */