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

Definition at line 26 of file o5mparser.h.

Member Function Documentation

◆ parse()

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.

◆ setMergeBuffer()

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.

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-2022 The KDE developers.
Generated on Fri Aug 19 2022 04:06:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.