diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-08 13:22:56 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-08 13:22:56 (GMT) |
commit | 91065673d61318a9ab7aebd3459af710abe75fa3 (patch) | |
tree | 179085cfe439ea0c75426aa1554122c266f3cdec /Source/cmCacheManager.cxx | |
parent | 103f115f25c28a107532be442d148247fe9b5efc (diff) | |
download | CMake-91065673d61318a9ab7aebd3459af710abe75fa3.zip CMake-91065673d61318a9ab7aebd3459af710abe75fa3.tar.gz CMake-91065673d61318a9ab7aebd3459af710abe75fa3.tar.bz2 |
ENH: Get accessor for cache value as boolean
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index a47bb22..91d0ddf 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -743,6 +743,11 @@ void cmCacheManager::CacheIterator::SetProperty(const char* p, const char* v) ent->m_Properties[p] = v; } +bool cmCacheManager::CacheIterator::GetValueAsBool() const +{ + return cmSystemTools::IsOn(this->GetEntry().m_Value.c_str()); +} + bool cmCacheManager::CacheIterator::GetPropertyAsBool(const char* property) const { // make sure it is not at the end |