diff options
author | Yuri Gorshenin <y@maps.me> | 2017-06-20 18:27:50 +0300 |
---|---|---|
committer | Yuri Gorshenin <mipt.vi002@gmail.com> | 2017-07-05 16:41:38 +0300 |
commit | 51dec899590d4724f2e24a7fa19e9d39ba951600 (patch) | |
tree | 51ff520fca9f556c3220808917dad37cf45909ed | |
parent | 988462da59a03502457fa53fbebb23259c169ebd (diff) |
[ugc] UGC DB iface.
-rw-r--r-- | generator/CMakeLists.txt | 2 | ||||
-rw-r--r-- | generator/generator.pro | 2 | ||||
-rw-r--r-- | generator/ugc_db.cpp | 13 | ||||
-rw-r--r-- | generator/ugc_db.hpp | 24 |
4 files changed, 41 insertions, 0 deletions
diff --git a/generator/CMakeLists.txt b/generator/CMakeLists.txt index a1cac29990..e05d45497d 100644 --- a/generator/CMakeLists.txt +++ b/generator/CMakeLists.txt @@ -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 diff --git a/generator/generator.pro b/generator/generator.pro index 24373cc60d..616681bbbc 100644 --- a/generator/generator.pro +++ b/generator/generator.pro @@ -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 \ diff --git a/generator/ugc_db.cpp b/generator/ugc_db.cpp new file mode 100644 index 0000000000..75da1df601 --- /dev/null +++ b/generator/ugc_db.cpp @@ -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 diff --git a/generator/ugc_db.hpp b/generator/ugc_db.hpp new file mode 100644 index 0000000000..75f87ff2e5 --- /dev/null +++ b/generator/ugc_db.hpp @@ -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 |