summaryrefslogtreecommitdiffstats
path: root/SystemTools.hxx.in
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2019-03-21 16:35:09 (GMT)
committerBrad King <brad.king@kitware.com>2019-03-21 16:38:41 (GMT)
commit868dc1a121f9876a19852e0c6467483ad0d67951 (patch)
treef16332023b4c618472a9f9151d885536262043ef /SystemTools.hxx.in
parent11fe7c9063d22197c8de7fe30575f5acf5a0a10c (diff)
downloadCMake-868dc1a121f9876a19852e0c6467483ad0d67951.zip
CMake-868dc1a121f9876a19852e0c6467483ad0d67951.tar.gz
CMake-868dc1a121f9876a19852e0c6467483ad0d67951.tar.bz2
KWSys 2019-03-21 (fd41ac36)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit fd41ac36adc088e1b175185ef8a8347df569a836 (master). Upstream Shortlog ----------------- Brad King (1): db462838 SystemTools: Revert "Use copyfile(3) to clone files on macOS" Gregor Jasny (1): 7c71e879 SystemTools: Use copyfile(3) to clone files on macOS Sebastian Holtermann (10): 6fed6364 SystemTools: Add SystemToolsStatic class skeleton a8195f76 SystemTools: Move SystemTools::Cyg2Win32Map to SystemToolsStatic 7c273c83 SystemTools: Move SystemTools::EnvMap to SystemToolsStatic 706919be SystemTools: Move SystemTools::PathCaseMap to SystemToolsStatic 67eb2674 SystemTools: Move SystemTools::TranslationMap to SystemToolsStatic 9e32eecd SystemTools: Move private type definitions to SystemToolsStatic d9db985f SystemTools: Move private GetEnvImpl method to SystemToolsStatic a1271fea SystemTools: Move private FindName method to SystemToolsStatic 7512ab8c SystemTools: Move private FindIsFullPath method to SystemToolsStatic class 8b58389c SystemTools: Move private ReplaceString method to SystemToolsStatic class
Diffstat (limited to 'SystemTools.hxx.in')
-rw-r--r--SystemTools.hxx.in41
1 files changed, 3 insertions, 38 deletions
diff --git a/SystemTools.hxx.in b/SystemTools.hxx.in
index 33b579f..cdc9483 100644
--- a/SystemTools.hxx.in
+++ b/SystemTools.hxx.in
@@ -41,9 +41,7 @@ typedef @KWSYS_NAMESPACE@_VA_LIST::hack_va_list va_list;
namespace @KWSYS_NAMESPACE@ {
-class SystemToolsTranslationMap;
-class SystemToolsPathCaseMap;
-class SystemToolsEnvMap;
+class SystemToolsStatic;
/** \class SystemToolsManager
* \brief Use to make sure SystemTools is initialized before it is used
@@ -967,41 +965,8 @@ private:
return &SystemToolsManagerInstance;
}
- /**
- * Actual implementation of ReplaceString.
- */
- static void ReplaceString(std::string& source, const char* replace,
- size_t replaceSize, const std::string& with);
-
- /**
- * Actual implementation of FileIsFullPath.
- */
- static bool FileIsFullPath(const char*, size_t);
-
- /**
- * Find a filename (file or directory) in the system PATH, with
- * optional extra paths.
- */
- static std::string FindName(
- const std::string& name,
- const std::vector<std::string>& path = std::vector<std::string>(),
- bool no_system_path = false);
-
- static const char* GetEnvImpl(const char* key);
-
- /**
- * Path translation table from dir to refdir
- * Each time 'dir' will be found it will be replace by 'refdir'
- */
- static SystemToolsTranslationMap* TranslationMap;
-#ifdef _WIN32
- static std::string GetActualCaseForPathCached(std::string const& path);
- static SystemToolsPathCaseMap* PathCaseMap;
- static SystemToolsEnvMap* EnvMap;
-#endif
-#ifdef __CYGWIN__
- static SystemToolsTranslationMap* Cyg2Win32Map;
-#endif
+ static SystemToolsStatic* Statics;
+ friend class SystemToolsStatic;
friend class SystemToolsManager;
};