blob: 15fd9babb6981f2039573c36d3a48f07770ce637 (
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
|
#include "ugc/storage.hpp"
#include "indexer/feature_decl.hpp"
namespace ugc
{
Storage::Storage(std::string const & filename)
: m_filename(filename)
{
Load();
}
UGCUpdate const * Storage::GetUGCUpdate(FeatureID const & id) const
{
auto const it = m_ugc.find(id);
if (it != end(m_ugc))
return &it->second;
return nullptr;
}
void Storage::SetUGCUpdate(FeatureID const & id, UGCUpdate const & ugc)
{
m_ugc[id] = ugc;
}
void Storage::Load()
{
}
void Storage::Save()
{
}
} // namespace ugc
|