diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-26 18:53:44 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-26 18:53:44 (GMT) |
commit | 2c1fb789d7a182ab0df53aad474a657d59d894b0 (patch) | |
tree | 3f4db8d752a6f3a218e92ad470efb97b5e7421c7 /Source/cmCacheManager.h | |
parent | 6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95 (diff) | |
download | CMake-2c1fb789d7a182ab0df53aad474a657d59d894b0.zip CMake-2c1fb789d7a182ab0df53aad474a657d59d894b0.tar.gz CMake-2c1fb789d7a182ab0df53aad474a657d59d894b0.tar.bz2 |
ENH: add help for cache entries
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r-- | Source/cmCacheManager.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h index dd313bd..e02768f 100644 --- a/Source/cmCacheManager.h +++ b/Source/cmCacheManager.h @@ -29,10 +29,10 @@ class cmCacheManager { public: enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL }; - class CacheEntry + struct CacheEntry { - public: std::string m_Value; + std::string m_HelpString; CacheEntryType m_Type; }; public: @@ -60,10 +60,11 @@ public: bool SaveCache(const char* path) const; //! Add an entry into the cache - void AddCacheEntry(const char* key, const char* value, CacheEntryType type); + void AddCacheEntry(const char* key, const char* value, + const char* helpString, CacheEntryType type); //! Add a BOOL entry into the cache - void AddCacheEntry(const char* key, bool); + void AddCacheEntry(const char* key, bool, const char* helpString); //! Remove an entry from the cache void RemoveCacheEntry(const char* key); @@ -85,6 +86,8 @@ public: const CacheEntryMap &GetCacheMap() const { return m_Cache; } private: + static void OutputHelpString(std::ofstream& fout, + const std::string& helpString); static cmCacheManager* s_Instance; CacheEntryMap m_Cache; }; |