MCPcopy Create free account
hub / github.com/Kitware/CMake / DumpEntry

Method DumpEntry

Source/cmFileAPICache.cxx:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65Json::Value Cache::DumpEntry(std::string const& name)
66{
67 Json::Value entry = Json::objectValue;
68 entry["name"] = name;
69 entry["type"] =
70 cmState::CacheEntryTypeToString(this->State->GetCacheEntryType(name));
71 entry["value"] = this->State->GetSafeCacheEntryValue(name);
72
73 Json::Value properties = this->DumpEntryProperties(name);
74 if (!properties.empty()) {
75 entry["properties"] = std::move(properties);
76 }
77
78 return entry;
79}
80
81Json::Value Cache::DumpEntryProperties(std::string const& name)
82{

Callers 1

DumpEntriesMethod · 0.95

Calls 5

DumpEntryPropertiesMethod · 0.95
moveFunction · 0.85
GetCacheEntryTypeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected