2021-04-14 19:04:08 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace tinyxml2
|
|
|
|
{
|
|
|
|
class XMLElement;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace osmp
|
|
|
|
{
|
|
|
|
typedef struct sBounds
|
|
|
|
{
|
2021-04-17 01:15:07 +00:00
|
|
|
double minlat, minlon, maxlat, maxlon;
|
2021-04-14 19:04:08 +00:00
|
|
|
} Bounds;
|
|
|
|
|
2021-04-18 13:44:48 +00:00
|
|
|
[[nodiscard]] std::string GetSafeAttributeString(const tinyxml2::XMLElement* elem, const std::string& name);
|
|
|
|
[[nodiscard]] double GetSafeAttributeFloat(const tinyxml2::XMLElement* elem, const std::string& name);
|
|
|
|
[[nodiscard]] uint64_t GetSafeAttributeUint64(const tinyxml2::XMLElement* elem, const std::string& name);
|
|
|
|
[[nodiscard]] bool GetSafeAttributeBool(const tinyxml2::XMLElement* elem, const std::string& name);
|
2021-04-14 19:04:08 +00:00
|
|
|
}
|