Io.h
Go to the documentation of this file.
1 #pragma once
3 
4 #include <string>
5 #include <vector>
6 
9 
10 namespace lanelet {
11 using ErrorMessages = std::vector<std::string>;
30 std::unique_ptr<LaneletMap> load(const std::string& filename, const Origin& origin = Origin::defaultOrigin(),
31  ErrorMessages* errors = nullptr,
32  const io::Configuration& params = io::Configuration());
33 
46 std::unique_ptr<LaneletMap> load(const std::string& filename, const Projector& projector,
47  ErrorMessages* errors = nullptr,
48  const io::Configuration& params = io::Configuration());
49 
64 std::unique_ptr<LaneletMap> load(const std::string& filename, const std::string& parserName,
65  const Origin& origin = Origin::defaultOrigin(), ErrorMessages* errors = nullptr,
66  const io::Configuration& params = io::Configuration());
67 
80 std::unique_ptr<LaneletMap> load(const std::string& filename, const std::string& parserName, const Projector& projector,
81  ErrorMessages* errors = nullptr,
82  const io::Configuration& params = io::Configuration());
83 
88 std::vector<std::string> supportedParsers();
89 
95 std::vector<std::string> supportedParserExtensions();
96 
113 void write(const std::string& filename, const lanelet::LaneletMap& map, const Origin& origin = Origin::defaultOrigin(),
114  ErrorMessages* errors = nullptr, const io::Configuration& params = io::Configuration());
115 
127 void write(const std::string& filename, const LaneletMap& map, const Projector& projector,
128  ErrorMessages* errors = nullptr, const io::Configuration& params = io::Configuration());
129 
141 void write(const std::string& filename, const lanelet::LaneletMap& map, const std::string& writerName,
142  const Origin& origin = Origin::defaultOrigin(), ErrorMessages* errors = nullptr,
143  const io::Configuration& params = io::Configuration());
144 
156 void write(const std::string& filename, const LaneletMap& map, const std::string& writerName,
157  const Projector& projector, ErrorMessages* errors = nullptr,
158  const io::Configuration& params = io::Configuration());
159 
164 std::vector<std::string> supportedWriters();
165 
170 std::vector<std::string> supportedWriterExtensions();
171 } // namespace lanelet
lanelet::ErrorMessages
std::vector< std::string > ErrorMessages
Definition: Io.h:11
lanelet::supportedWriters
std::vector< std::string > supportedWriters()
returns the names of the currently registered writing (writers from plugins included)
Definition: Io.cpp:82
LaneletMap.h
lanelet
lanelet::io::Configuration
std::map< std::string, Attribute > Configuration
Definition: Configuration.h:8
lanelet::supportedWriterExtensions
std::vector< std::string > supportedWriterExtensions()
returns the names of the currently supported extensions for writing (including the dot)
Definition: Io.cpp:84
lanelet::Projector
Definition: Projection.h:22
lanelet::LaneletMap
lanelet::load
std::unique_ptr< LaneletMap > load(const std::string &filename, const Origin &origin=Origin::defaultOrigin(), ErrorMessages *errors=nullptr, const io::Configuration &params=io::Configuration())
Loads a lanelet map from a file.
Definition: Io.cpp:24
lanelet::Origin
Definition: Projection.h:11
lanelet::write
void write(const std::string &filename, const lanelet::LaneletMap &map, const Origin &origin=Origin::defaultOrigin(), ErrorMessages *errors=nullptr, const io::Configuration &params=io::Configuration())
writes a map to a file
Definition: Io.cpp:61
lanelet::supportedParserExtensions
std::vector< std::string > supportedParserExtensions()
Definition: Io.cpp:59
Projection.h
lanelet::Origin::defaultOrigin
static Origin defaultOrigin()
Definition: Projection.h:15
Configuration.h
lanelet::supportedParsers
std::vector< std::string > supportedParsers()
returns the names of the currently registered parsers (parsers from plugins included)
Definition: Io.cpp:57


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