summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-07 13:49:42 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-07 13:49:42 (GMT)
commit4259971961aff5e6423eb72a4fad8acf7af79653 (patch)
tree56d0a716ecbf52513f4c2f6607b4522b0cbb5280 /Source/cmListFileCache.h
parent515757007a4af94e9c80237a83e535ac62851c5b (diff)
downloadCMake-4259971961aff5e6423eb72a4fad8acf7af79653.zip
CMake-4259971961aff5e6423eb72a4fad8acf7af79653.tar.gz
CMake-4259971961aff5e6423eb72a4fad8acf7af79653.tar.bz2
ENH: Since list file cache does not make much sense any more (because of proper list file parsing), and it actually adds unnecessary complications and make ctest scripting not work, take it out
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r--Source/cmListFileCache.h32
1 files changed, 1 insertions, 31 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index 17239d2..fc35c37 100644
--- a/Source/cmListFileCache.h
+++ b/Source/cmListFileCache.h
@@ -62,42 +62,12 @@ struct cmListFile
:m_ModifiedTime(0)
{
}
+ bool ParseFile(const char* path, bool requireProjectCommand);
long int m_ModifiedTime;
std::vector<cmListFileFunction> m_Functions;
-};
-
-class cmListFileCache
-{
-public:
- static cmListFileCache* GetInstance();
- static void ClearCache();
-
-
- /** Return the cached version of the given file.
- * If the file is not already in the cache, a cache entry
- * will be made. If there is an error loading the file,
- * NULL is returned. If requireProjectCommand is true,
- * then a PROJECT(Project) command will be added to the file
- * if it does not have a PROJECT command in it.
- */
- cmListFile* GetFileCache(const char* path, bool requireProjectCommand);
-
- //! Flush cache file out of cache.
- void FlushCache(const char* path);
-
- ~cmListFileCache();
-private:
- // Cache the file
- bool CacheFile(const char* path, bool requireProjectCommand);
- // private data
- typedef std::map<cmStdString, cmListFile> ListFileMap;
- ListFileMap m_ListFileCache; // file name to ListFile map
-
typedef std::map<cmStdString, char*> UniqueStrings;
UniqueStrings m_UniqueStrings;
const char* GetUniqueStringPointer(const char* name);
-
- static cmListFileCache* Instance; // singelton pointer
};
#endif