summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-13 14:03:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-13 14:03:05 (GMT)
commit473634eb1cc4f664c8b7cdc12a103828560c225f (patch)
tree00970c12021ddca79336e406cdf8ee98b70a81d0 /Source/cmCacheManager.cxx
parent4e66ca1952c0ba9dfba6050f83f67c90884c8492 (diff)
parent63c0e92c9395083a61fe31cd89bee7e3814f10e8 (diff)
downloadCMake-473634eb1cc4f664c8b7cdc12a103828560c225f.zip
CMake-473634eb1cc4f664c8b7cdc12a103828560c225f.tar.gz
CMake-473634eb1cc4f664c8b7cdc12a103828560c225f.tar.bz2
Merge topic 'expose-cache-properties'
63c0e92c cmState: Expose list of properties of values in the cache 6eee2463 cmCacheEntry: Retrieve all properties of cache entries 120899c6 cmPropertyList: Add a way to retrieve all properties 7066218e cmake: Kill cmake::CacheManager and its getter
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index 9adfdaf..bcef3c8 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -540,6 +540,11 @@ void cmCacheManager::CacheIterator::Next()
}
}
+std::vector<std::string> cmCacheManager::CacheIterator::GetPropertyList() const
+{
+ return this->GetEntry().GetPropertyList();
+}
+
void cmCacheManager::CacheIterator::SetValue(const char* value)
{
if (this->IsAtEnd()) {
@@ -559,6 +564,11 @@ bool cmCacheManager::CacheIterator::GetValueAsBool() const
return cmSystemTools::IsOn(this->GetEntry().Value.c_str());
}
+std::vector<std::string> cmCacheManager::CacheEntry::GetPropertyList() const
+{
+ return this->Properties.GetPropertyList();
+}
+
const char* cmCacheManager::CacheEntry::GetProperty(
const std::string& prop) const
{