Public Member Functions | Static Public Member Functions | List of all members
lanelet::io_handlers::OsmWriter Class Reference

Writer class for osm files. More...

#include <OsmHandler.h>

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

Public Member Functions

std::unique_ptr< osm::FiletoOsmFile (const LaneletMap &laneletMap, ErrorMessages &errors, const io::Configuration &params=io::Configuration()) const
 
void write (const std::string &filename, const LaneletMap &laneletMap, ErrorMessages &errors, const io::Configuration &params=io::Configuration()) const override
 Write the provided map to a file according to the provided parameters: More...
 
 Writer ()=default
 
- Public Member Functions inherited from lanelet::io_handlers::Writer
 IOHandler ()=default
 
 IOHandler (const Projector &projector, const io::Configuration &config=io::Configuration())
 
 Writer ()=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
 

Static Public Member Functions

static constexpr const char * extension ()
 
static constexpr const char * name ()
 
- 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...
 

Additional Inherited Members

- Public Types inherited from lanelet::io_handlers::Writer
using Ptr = std::shared_ptr< Writer >
 
- Public Types inherited from lanelet::io_handlers::IOHandler
using Ptr = std::shared_ptr< IOHandler >
 
- Protected Member Functions inherited from lanelet::io_handlers::IOHandler
 IOHandler ()=default
 

Detailed Description

Writer class for osm files.

Definition at line 11 of file OsmHandler.h.

Member Function Documentation

◆ extension()

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

Definition at line 26 of file OsmHandler.h.

◆ name()

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

Definition at line 28 of file OsmHandler.h.

◆ toOsmFile()

std::unique_ptr< osm::File > lanelet::io_handlers::OsmWriter::toOsmFile ( const LaneletMap laneletMap,
ErrorMessages errors,
const io::Configuration params = io::Configuration() 
) const

Definition at line 309 of file OsmHandlerWrite.cpp.

◆ write()

void lanelet::io_handlers::OsmWriter::write ( const std::string &  filename,
const LaneletMap laneletMap,
ErrorMessages errors,
const io::Configuration params = io::Configuration() 
) const
overridevirtual

Write the provided map to a file according to the provided parameters:

"josm_upload": the value of the "upload" attribute, "false" by default "josm_format_elevation": whether to format elevation to 2 decimal places as required by JSOM, "false" by default

Implements lanelet::io_handlers::Writer.

Definition at line 299 of file OsmHandlerWrite.cpp.

◆ Writer()

lanelet::io_handlers::Writer::Writer
default

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


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