diff options
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 8b4dc2f..7942692 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -254,6 +254,16 @@ public: std::string& file); static std::string CollapseFullPath(const char*); + /** + * all file path prefixes matching \arg from will be replaced by + * \arg to. Affects the return value of CollapseFullPath and + * GetCurrentWorkingDirectory. + */ + static void AddPathTranslation( const std::string& from, const std::string& to ); + + ///! Apply the current path translations to \arg path. + static void ApplyPathTranslation( std::string& path ); + ///! return path of a full filename (no trailing slashes). static std::string GetFilenamePath(const std::string&); @@ -295,6 +305,9 @@ private: static bool s_DisableMessages; static bool s_DisableRunCommandOutput; static ErrorCallback s_ErrorCallback; + + typedef std::map<cmStdString, cmStdString> PathMap; + static PathMap s_PathMap; }; |