Class Writer

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class Writer : public lanelet::io_handlers::IOHandler

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

  1. Inherit from this writer

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

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

  4. register your writer using the Registerwriter object

Subclassed by lanelet::io_handlers::BinWriter, lanelet::io_handlers::OsmWriter

Public Types

using Ptr = std::shared_ptr<Writer>

Public Functions

Writer() = default
virtual void write(const std::string &filename, const LaneletMap &laneletMap, ErrorMessages &errors, const io::Configuration &params = io::Configuration()) const = 0
inline explicit IOHandler(const Projector &projector, const io::Configuration &config = io::Configuration())
IOHandler() = default