summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-07 20:45:54 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-13 15:44:16 (GMT)
commitf081c5bdddcfcaaf5bee7b918fe5c7ff01faae35 (patch)
treea2aad443ecfe835aaa3eaa1d4dd95fc34d94f59f /Source/cmState.h
parentf71fdf0ec8289ada5b32b784bc2f6f617538ce0b (diff)
downloadCMake-f081c5bdddcfcaaf5bee7b918fe5c7ff01faae35.zip
CMake-f081c5bdddcfcaaf5bee7b918fe5c7ff01faae35.tar.gz
CMake-f081c5bdddcfcaaf5bee7b918fe5c7ff01faae35.tar.bz2
cmState: Move CacheEntryType enum from cmCacheManager.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 06b0ec6..f2e8ef5 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -12,7 +12,7 @@
#ifndef cmState_h
#define cmState_h
-#include "cmCacheManager.h"
+#include "cmStandardIncludes.h"
class cmake;
@@ -21,21 +21,21 @@ class cmState
public:
cmState(cmake* cm);
- static cmCacheManager::CacheEntryType StringToCacheEntryType(const char*);
- static const char* CacheEntryTypeToString(cmCacheManager::CacheEntryType);
+ enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC,
+ UNINITIALIZED };
+ static CacheEntryType StringToCacheEntryType(const char*);
+ static const char* CacheEntryTypeToString(CacheEntryType);
static bool IsCacheEntryType(std::string const& key);
std::vector<std::string> GetCacheEntryKeys() const;
const char* GetCacheEntryValue(std::string const& key) const;
const char* GetInitializedCacheValue(std::string const& key) const;
- cmCacheManager::CacheEntryType
- GetCacheEntryType(std::string const& key) const;
+ CacheEntryType GetCacheEntryType(std::string const& key) const;
void SetCacheEntryValue(std::string const& key, std::string const& value);
void SetCacheValue(std::string const& key, std::string const& value);
void AddCacheEntry(const std::string& key, const char* value,
- const char* helpString,
- cmCacheManager::CacheEntryType type);
+ const char* helpString, CacheEntryType type);
void RemoveCacheEntry(std::string const& key);
void SetCacheEntryProperty(std::string const& key,