summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-10 15:10:42 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-10 15:10:42 (GMT)
commitca9fb4826f89722a5a190e0c69e6bf5c26889a55 (patch)
treefc2f3474f2417783a7019db34fcdb4d4b98a702d /Source/cmCacheManager.h
parenteffd6d6e0b4445811b27af9cbc9db6923f6aacdf (diff)
downloadCMake-ca9fb4826f89722a5a190e0c69e6bf5c26889a55.zip
CMake-ca9fb4826f89722a5a190e0c69e6bf5c26889a55.tar.gz
CMake-ca9fb4826f89722a5a190e0c69e6bf5c26889a55.tar.bz2
ENH: Use cmPropertyMap for cache properties
This re-implements cache entry property storage in cmCacheManager to use cmPropertyMap so it can share the standard property implementation.
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r--Source/cmCacheManager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h
index f1e2298..e57042b 100644
--- a/Source/cmCacheManager.h
+++ b/Source/cmCacheManager.h
@@ -18,6 +18,7 @@
#define cmCacheManager_h
#include "cmStandardIncludes.h"
+#include "cmPropertyMap.h"
class cmMakefile;
class cmMarkAsAdvancedCommand;
@@ -41,7 +42,10 @@ private:
{
std::string Value;
CacheEntryType Type;
- std::map<cmStdString,cmStdString> Properties;
+ cmPropertyMap Properties;
+ const char* GetProperty(const char*) const;
+ void SetProperty(const char* property, const char* value);
+ void AppendProperty(const char* property, const char* value);
bool Initialized;
CacheEntry() : Value(""), Type(UNINITIALIZED), Initialized(false)
{}
@@ -61,6 +65,7 @@ public:
bool GetPropertyAsBool(const char*) const ;
bool PropertyExists(const char*) const;
void SetProperty(const char* property, const char* value);
+ void AppendProperty(const char* property, const char* value);
void SetProperty(const char* property, bool value);
const char* GetValue() const { return this->GetEntry().Value.c_str(); }
bool GetValueAsBool() const;