[ugc] UGC DB iface.

This commit is contained in:
Yuri Gorshenin 2017-06-20 18:27:50 +03:00 committed by Yuri Gorshenin
parent 988462da59
commit 51dec89959
4 changed files with 41 additions and 0 deletions

View file

@ -89,6 +89,8 @@ set(SRC
towns_dumper.hpp
traffic_generator.cpp
traffic_generator.hpp
ugc_db.cpp
ugc_db.hpp
unpack_mwm.cpp
unpack_mwm.hpp
utils.cpp

View file

@ -51,6 +51,7 @@ SOURCES += \
tesselator.cpp \
towns_dumper.cpp \
traffic_generator.cpp \
ugc_db.cpp \
unpack_mwm.cpp \
utils.cpp \
viator_dataset.cpp \
@ -102,6 +103,7 @@ HEADERS += \
tesselator.hpp \
towns_dumper.hpp \
traffic_generator.hpp \
ugc_db.hpp \
unpack_mwm.hpp \
utils.hpp \
viator_dataset.hpp \

13
generator/ugc_db.cpp Normal file
View file

@ -0,0 +1,13 @@
#include "generator/ugc_db.hpp"
namespace generator
{
UGCDB::UGCDB(std::string const & /*path */)
{ // TODO (@syershov): implement this
}
bool UGCDB::Get(osm::Id const & /* id */, std::vector<uint8_t> & /* blob */)
{ // TODO (@syershov): implement this
return false;
}
} // namespace generator

24
generator/ugc_db.hpp Normal file
View file

@ -0,0 +1,24 @@
#pragma once
#include "base/exception.hpp"
#include <cstdint>
#include <string>
#include <vector>
namespace osm
{
class Id;
}
namespace generator
{
DECLARE_EXCEPTION(DBNotFound, RootException);
class UGCDB
{
public:
UGCDB(std::string const & path);
bool Get(osm::Id const & id, std::vector<uint8_t> & blob);
};
} // namespace generator