Add project files.
This commit is contained in:
parent
18b81590d3
commit
045f3a8439
15 changed files with 1303019 additions and 0 deletions
27
lib/osmparser/include/util.hpp
Normal file
27
lib/osmparser/include/util.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace tinyxml2
|
||||
{
|
||||
class XMLElement;
|
||||
}
|
||||
|
||||
namespace osmp
|
||||
{
|
||||
typedef struct sBounds
|
||||
{
|
||||
float minlat, minlon, maxlat, maxlon;
|
||||
} Bounds;
|
||||
|
||||
typedef struct sTag
|
||||
{
|
||||
std::string k; // TODO: Should/could be an enum
|
||||
std::string v;
|
||||
} Tag;
|
||||
|
||||
std::string GetSafeAttributeString(const tinyxml2::XMLElement* elem, const std::string& name);
|
||||
float GetSafeAttributeFloat(const tinyxml2::XMLElement* elem, const std::string& name);
|
||||
unsigned int GetSafeAttributeUint(const tinyxml2::XMLElement* elem, const std::string& name);
|
||||
bool GetSafeAttributeBool(const tinyxml2::XMLElement* elem, const std::string& name);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue