Namespaces | |
keyword | |
Classes | |
struct | File |
Intermediate representation of an osm file. More... | |
struct | Node |
Osm node object. More... | |
struct | Primitive |
Common abstract base class for all osm primitives. Provides id and attributes. More... | |
struct | Relation |
Osm relation object. More... | |
struct | Way |
Osm way object. More... | |
Typedefs | |
using | Attributes = std::map< std::string, std::string > |
using | Errors = std::vector< std::string > |
using | Nodes = std::map< Id, Node > |
using | Relations = std::map< Id, Relation > |
using | Role = std::pair< std::string, Primitive * > |
using | Roles = std::deque< Role > |
using | Ways = std::map< Id, Way > |
Functions | |
auto | findRole (const Roles &roles, const std::string &roleName) |
template<typename Func > | |
auto | forEachMember (const Roles &roles, const std::string &roleName, Func &&f) |
bool | operator== (const File &lhs, const File &rhs) |
bool | operator== (const Node &lhs, const Node &rhs) |
bool | operator== (const Relation &lhs, const Relation &rhs) |
bool | operator== (const Way &lhs, const Way &rhs) |
File | read (pugi::xml_document &node, lanelet::osm::Errors *errors=nullptr) |
std::unique_ptr< pugi::xml_document > | write (const File &file, const io::Configuration ¶ms=io::Configuration()) |
using lanelet::osm::Attributes = typedef std::map<std::string, std::string> |
using lanelet::osm::Errors = typedef std::vector<std::string> |
using lanelet::osm::Nodes = typedef std::map<Id, Node> |
using lanelet::osm::Relations = typedef std::map<Id, Relation> |
using lanelet::osm::Role = typedef std::pair<std::string, Primitive*> |
using lanelet::osm::Roles = typedef std::deque<Role> |
using lanelet::osm::Ways = typedef std::map<Id, Way> |
|
inline |
|
inline |
Definition at line 339 of file OsmFile.cpp.
Definition at line 327 of file OsmFile.cpp.
Definition at line 315 of file OsmFile.cpp.
File lanelet::osm::read | ( | pugi::xml_document & | node, |
lanelet::osm::Errors * | errors = nullptr |
||
) |
Reads an xml document into an osm file representation and optionally reports parser errors.
Definition at line 343 of file OsmFile.cpp.
std::unique_ptr< pugi::xml_document > lanelet::osm::write | ( | const File & | file, |
const io::Configuration & | params = io::Configuration() |
||
) |
Creates an xml representation from an osm file representation. This is guaranteed to work without errors.
Definition at line 345 of file OsmFile.cpp.