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 & /* 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 +#include +#include + +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 & blob); +}; +} // namespace generator