Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
lanelet::io_handlers::IOHandler Class Referenceabstract

Base class for all handlers (writers and parsers) More...

#include <IoHandler.h>

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

Public Types

using Ptr = std::shared_ptr< IOHandler >
 

Public Member Functions

io::Configuration config ()
 
 IOHandler (const Projector &projector, const io::Configuration &config=io::Configuration())
 
const Projectorprojector () const
 
virtual ~IOHandler ()=default
 

Static Public Member Functions

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

 IOHandler ()=default
 

Private Member Functions

virtual void handleDefaultProjector () const =0
 using a default projector is not allowed. The implementations define how this issue is handled. More...
 

Private Attributes

const io::Configurationconfig_ {}
 
const Projectorprojector_ {}
 

Detailed Description

Base class for all handlers (writers and parsers)

Definition at line 13 of file IoHandler.h.

Member Typedef Documentation

◆ Ptr

Definition at line 15 of file IoHandler.h.

Constructor & Destructor Documentation

◆ IOHandler() [1/2]

lanelet::io_handlers::IOHandler::IOHandler ( const Projector projector,
const io::Configuration config = io::Configuration() 
)
inlineexplicit

Definition at line 16 of file IoHandler.h.

◆ ~IOHandler()

virtual lanelet::io_handlers::IOHandler::~IOHandler ( )
virtualdefault

◆ IOHandler() [2/2]

lanelet::io_handlers::IOHandler::IOHandler ( )
protecteddefault

Member Function Documentation

◆ config()

io::Configuration lanelet::io_handlers::IOHandler::config ( )
inline

Definition at line 41 of file IoHandler.h.

◆ extension()

static constexpr const char* lanelet::io_handlers::IOHandler::extension ( )
inlinestaticconstexpr

returns the extension supported by this parser

Returns
extension (including the dot) Extension can be empty if extension

Definition at line 25 of file IoHandler.h.

◆ handleDefaultProjector()

virtual void lanelet::io_handlers::IOHandler::handleDefaultProjector ( ) const
privatepure virtual

using a default projector is not allowed. The implementations define how this issue is handled.

Implemented in lanelet::io_handlers::Writer, and lanelet::io_handlers::Parser.

◆ name()

static constexpr const char* lanelet::io_handlers::IOHandler::name ( )
inlinestaticconstexpr

returns the name of this handler. Must not be empty for child classes

Returns
name

Definition at line 32 of file IoHandler.h.

◆ projector()

const Projector& lanelet::io_handlers::IOHandler::projector ( ) const
inline

Definition at line 34 of file IoHandler.h.

Member Data Documentation

◆ config_

const io::Configuration* lanelet::io_handlers::IOHandler::config_ {}
private

config object for additional parameters. Parser should always use default parameters if parameters are missing

Definition at line 49 of file IoHandler.h.

◆ projector_

const Projector* lanelet::io_handlers::IOHandler::projector_ {}
private

projection object for lat/lon from/to x/y conversions

Definition at line 47 of file IoHandler.h.


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