diff options
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 7b213a0..43027e9 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -37,6 +37,15 @@ const char* cmCacheManagerTypes[] = 0 }; +const char* cmCacheManager::TypeToString(cmCacheManager::CacheEntryType type) +{ + if ( type > 6 || type < 0 ) + { + return cmCacheManagerTypes[6]; + } + return cmCacheManagerTypes[type]; +} + cmCacheManager::CacheEntryType cmCacheManager::StringToType(const char* s) { int i = 0; |