diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-02-19 20:13:48 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-02-19 20:13:48 (GMT) |
commit | 89e037ee19ed033fee0830a0c56c7ae956265512 (patch) | |
tree | 7a98427243bde8b3e73210dee288784981b46f9c /Source/cmCacheManager.h | |
parent | a4bbb55efdbb8d1b948b55248b54a3532f2f9d41 (diff) | |
download | CMake-89e037ee19ed033fee0830a0c56c7ae956265512.zip CMake-89e037ee19ed033fee0830a0c56c7ae956265512.tar.gz CMake-89e037ee19ed033fee0830a0c56c7ae956265512.tar.bz2 |
ENH: first pass at cache, clean up the unix generator, clean up configure.in some
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r-- | Source/cmCacheManager.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h index 1806cc3..f983ea5 100644 --- a/Source/cmCacheManager.h +++ b/Source/cmCacheManager.h @@ -17,6 +17,7 @@ #define cmCacheManager_h #include "cmStandardIncludes.h" +class cmMakefile; /** \class cmCacheManager * \brief Control class for cmake's cache @@ -31,24 +32,26 @@ public: * Types for the cache entries. These are useful as * hints for a cache editor program. Path should bring * up a file chooser, BOOL a check box, and STRING a - * text entry box. + * text entry box, FILEPATH is a full path to a file which + * can be different than just a path input */ - enum CacheEntryType{ BOOL=0, PATH, STRING }; + enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING }; static CacheEntryType StringToType(const char*); //! Singleton pattern get instance of the cmCacheManager. static cmCacheManager* GetInstance(); - //! Load a cache from file - bool LoadCache(const char* path); + //! Load a cache for given makefile. Loads from ouput home. + bool LoadCache(cmMakefile*); - //! Save the cache to a file - bool SaveCache(const char* path); + //! Save cache for given makefile. Saves to ouput home CMakeCache.txt + bool SaveCache(cmMakefile*); //! Add an entry into the cache void AddCacheEntry(const char* key, const char* value, CacheEntryType type); //! Get a value from the cache given a key const char* GetCacheValue(const char* key); + private: static cmCacheManager* s_Instance; class CacheEntry |