Added triangulation routine
This commit is contained in:
parent
045f3a8439
commit
6ea55594ab
25 changed files with 891530 additions and 171 deletions
51
lib/osmparser/include/osmimember.hpp
Normal file
51
lib/osmparser/include/osmimember.hpp
Normal file
|
@ -0,0 +1,51 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#include <util.hpp>
|
||||
#include <osmtag.hpp>
|
||||
|
||||
namespace osmp
|
||||
{
|
||||
class Object;
|
||||
|
||||
class IMember
|
||||
{
|
||||
public:
|
||||
enum class Type {
|
||||
NODE, WAY, RELATION
|
||||
};
|
||||
|
||||
public:
|
||||
IMember(const IMember& other) = delete;
|
||||
virtual ~IMember() {}
|
||||
|
||||
IMember::Type GetType() const;
|
||||
|
||||
const std::vector<Tag>& GetTags() const;
|
||||
size_t GetTagsSize() const;
|
||||
const Tag& GetTag(size_t index) const;
|
||||
std::string GetTag(const std::string& key) const;
|
||||
|
||||
protected:
|
||||
IMember(const tinyxml2::XMLElement* element, Object* parent, IMember::Type type);
|
||||
|
||||
protected:
|
||||
IMember::Type type;
|
||||
Object* parent;
|
||||
|
||||
std::vector<Tag> tags;
|
||||
// std::map<std::string, std::string> tags;
|
||||
|
||||
public:
|
||||
unsigned int id;
|
||||
std::string user;
|
||||
unsigned int uid;
|
||||
bool visible;
|
||||
std::string version;
|
||||
unsigned int changeset;
|
||||
std::string timestamp;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue