Add project files.
This commit is contained in:
parent
18b81590d3
commit
045f3a8439
15 changed files with 1303019 additions and 0 deletions
34
lib/osmparser/include/osmnode.hpp
Normal file
34
lib/osmparser/include/osmnode.hpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
#pragma once
|
||||
#include <vector>
|
||||
|
||||
#include "util.hpp"
|
||||
|
||||
namespace osmp
|
||||
{
|
||||
class Object;
|
||||
|
||||
class Node
|
||||
{
|
||||
public:
|
||||
Node(const tinyxml2::XMLElement* xml, Object* parent);
|
||||
|
||||
const std::vector<Tag>& GetTags() const;
|
||||
size_t GetTagsSize() const;
|
||||
const Tag& GetTag(size_t index) const;
|
||||
|
||||
private:
|
||||
Object* parent;
|
||||
|
||||
std::vector<Tag> tags;
|
||||
|
||||
public:
|
||||
unsigned int id;
|
||||
float lat, lon;
|
||||
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