Public Types | Public Member Functions | Private Member Functions | List of all members
lanelet::io_handlers::Parser Class Referenceabstract

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

#include <Parser.h>

Inheritance diagram for lanelet::io_handlers::Parser:
Inheritance graph
[legend]

Public Types

using Ptr = std::shared_ptr< Parser >
 
- Public Types inherited from lanelet::io_handlers::IOHandler
using Ptr = std::shared_ptr< IOHandler >
 

Public Member Functions

 IOHandler ()=default
 
 IOHandler (const Projector &projector, const io::Configuration &config=io::Configuration())
 
virtual std::unique_ptr< LaneletMapparse (const std::string &filename, ErrorMessages &errors) const =0
 
 Parser ()=default
 
- Public Member Functions inherited from lanelet::io_handlers::IOHandler
io::Configuration config ()
 
 IOHandler (const Projector &projector, const io::Configuration &config=io::Configuration())
 
const Projectorprojector () const
 
virtual ~IOHandler ()=default
 

Private Member Functions

void handleDefaultProjector () const final
 loading a map with a default origin throws an error More...
 

Additional Inherited Members

- Static Public Member Functions inherited from lanelet::io_handlers::IOHandler
static constexpr const char * extension ()
 returns the extension supported by this parser More...
 
static constexpr const char * name ()
 returns the name of this handler. Must not be empty for child classes More...
 
- Protected Member Functions inherited from lanelet::io_handlers::IOHandler
 IOHandler ()=default
 

Detailed Description

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

Definition at line 22 of file Parser.h.

Member Typedef Documentation

◆ Ptr

using lanelet::io_handlers::Parser::Ptr = std::shared_ptr<Parser>

Definition at line 26 of file Parser.h.

Constructor & Destructor Documentation

◆ Parser()

lanelet::io_handlers::Parser::Parser ( )
default

Member Function Documentation

◆ handleDefaultProjector()

void lanelet::io_handlers::Parser::handleDefaultProjector ( ) const
inlinefinalprivatevirtual

loading a map with a default origin throws an error

Implements lanelet::io_handlers::IOHandler.

Definition at line 31 of file Parser.h.

◆ IOHandler() [1/2]

lanelet::io_handlers::IOHandler::IOHandler
default

◆ IOHandler() [2/2]

lanelet::io_handlers::IOHandler::IOHandler
inlineexplicit

Definition at line 16 of file IoHandler.h.

◆ parse()

virtual std::unique_ptr<LaneletMap> lanelet::io_handlers::Parser::parse ( const std::string &  filename,
ErrorMessages errors 
) const
pure virtual

The documentation for this class was generated from the following file:


lanelet2_io
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:26:03