Commit 062ed22e authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmState: Add cache file manipulation wrappers.

parent a02e53eb
......@@ -147,6 +147,24 @@ bool cmState::IsCacheEntryType(std::string const& key)
return false;
}
bool cmState::LoadCache(const std::string& path, bool internal,
std::set<std::string>& excludes,
std::set<std::string>& includes)
{
return this->CMakeInstance->GetCacheManager()->LoadCache(path, internal,
excludes, includes);
}
bool cmState::SaveCache(const std::string& path)
{
return this->CMakeInstance->GetCacheManager()->SaveCache(path);
}
bool cmState::DeleteCache(const std::string& path)
{
return this->CMakeInstance->GetCacheManager()->DeleteCache(path);
}
std::vector<std::string> cmState::GetCacheEntryKeys() const
{
std::vector<std::string> definitions;
......
......@@ -208,6 +208,14 @@ public:
static const char* CacheEntryTypeToString(CacheEntryType);
static bool IsCacheEntryType(std::string const& key);
bool LoadCache(const std::string& path, bool internal,
std::set<std::string>& excludes,
std::set<std::string>& includes);
bool SaveCache(const std::string& path) ;
bool DeleteCache(const std::string& path);
std::vector<std::string> GetCacheEntryKeys() const;
const char* GetCacheEntryValue(std::string const& key) const;
const char* GetInitializedCacheValue(std::string const& key) const;
......
......@@ -1760,17 +1760,17 @@ bool cmake::LoadCache(const std::string& path, bool internal,
std::set<std::string>& excludes,
std::set<std::string>& includes)
{
return this->CacheManager->LoadCache(path, internal, excludes, includes);
return this->State->LoadCache(path, internal, excludes, includes);
}
bool cmake::SaveCache(const std::string& path)
{
return this->CacheManager->SaveCache(path);
return this->State->SaveCache(path);
}
bool cmake::DeleteCache(const std::string& path)
{
return this->CacheManager->DeleteCache(path);
return this->State->DeleteCache(path);
}
void cmake::SetProgressCallback(ProgressCallbackType f, void *cd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment