OSM::O5mParser

Search for usage in LXR

OSM::O5mParser Class Reference

#include <o5mparser.h>

Public Member Functions

 O5mParser (DataSet *dataSet)
 
void parse (const uint8_t *data, std::size_t len)
 
void setMergeBuffer (OSM::DataSetMergeBuffer *buffer)
 

Detailed Description

Zero-copy parser of O5M binary files.

See also
https://wiki.openstreetmap.org/wiki/O5m

Definition at line 26 of file o5mparser.h.

Member Function Documentation

void O5mParser::parse ( const uint8_t *  data,
std::size_t  len 
)

Parse the given binary content.

Feed this with QFile::map() for example.

Definition at line 52 of file o5mparser.cpp.

void O5mParser::setMergeBuffer ( OSM::DataSetMergeBuffer buffer)

Sets a merge buffer.

When set, the parser will insert all elements into that buffer rather than in the OSM::DataSet specified in the constructor. It is then your responsibility to properly integrate those.

Note
The OSM::DataSet is used for generating tag keys and for memory managing strings in this case as well. So the generated elements are tied to the OSM::DataSet in any case.

Definition at line 47 of file o5mparser.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jul 29 2021 23:03:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.