blob: fe966264a77e1aee077eaf0cb09143005e1380b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include "ugc/storage.hpp"
#include "indexer/feature_decl.hpp"
namespace ugc
{
Storage::Storage(std::string const & filename)
: m_filename(filename)
{
Load();
}
void Storage::GetUGCUpdate(FeatureID const & id, UGCUpdate & ugc) const
{
auto const it = m_ugc.find(id);
if (it == end(m_ugc))
return;
ugc = it->second;
}
void Storage::SetUGCUpdate(FeatureID const & id, UGCUpdate const & ugc)
{
m_ugc[id] = ugc;
}
void Storage::Load()
{
}
void Storage::Save()
{
}
} // namespace ugc
|