forked from organicmaps/organicmaps
[ugc] UGC DB iface.
This commit is contained in:
parent
988462da59
commit
51dec89959
4 changed files with 41 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
13
generator/ugc_db.cpp
Normal 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
24
generator/ugc_db.hpp
Normal 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
|
Loading…
Add table
Reference in a new issue