Class Parser

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class Parser : public lanelet::io_handlers::IOHandler

Base object for parsers. To create a new parser, you have to do the following steps:

  1. Inherit from this parser

  2. Overload the parse()-function, the name()-function (from IOHandler) and optionally the extension()-function (from IOHandler)

  3. Inherit the constructors (using Parser::Parser)

  4. register your parser using the RegisterParser object

Subclassed by lanelet::io_handlers::BinParser, lanelet::io_handlers::OsmParser

Public Types

using Ptr = std::shared_ptr<Parser>

Public Functions

Parser() = default
virtual std::unique_ptr<LaneletMap> parse(const std::string &filename, ErrorMessages &errors) const = 0
inline explicit IOHandler(const Projector &projector, const io::Configuration &config = io::Configuration())
IOHandler() = default