MCPcopy Create free account
hub / github.com/comaps/comaps / Load

Method Load

libs/search/query_saver.cpp:155–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void QuerySaver::Load()
156{
157 string hexData;
158 if (!settings::Get(kSettingsKey, hexData) || hexData.empty())
159 return;
160
161 try
162 {
163 Deserialize(hexData);
164 }
165 catch (RootException const &)
166 {
167 Clear();
168 LOG(LWARNING, ("Search history data corrupted! Creating new one."));
169 }
170}
171} // namespace search

Callers 8

LoadCitiesBoundariesMethod · 0.45
LoadStreetsMethod · 0.45
MatchesMethod · 0.45
AddNonFoundResultMethod · 0.45
ForAnyMatchingEntryMethod · 0.45
MakeSampleMethod · 0.45
UNIT_CLASS_TESTFunction · 0.45
LocalityFinderTestMethod · 0.45

Calls 3

GetFunction · 0.85
ClearFunction · 0.85
emptyMethod · 0.45

Tested by 2

UNIT_CLASS_TESTFunction · 0.36
LocalityFinderTestMethod · 0.36