organicmaps/kml/serdes_geojson.hpp
S. Kozyr 27db459c83
Geojson serialization draft
Signed-off-by: S. Kozyr <s.trump@gmail.com>
2025-03-25 10:08:14 +02:00

30 lines
419 B
C++

#pragma once
#include "kml/types.hpp"
#include "coding/writer.hpp"
#include "base/exception.hpp"
namespace kml
{
namespace geojson
{
class GeojsonWriter
{
public:
DECLARE_EXCEPTION(WriteGeojsonException, RootException);
explicit GeojsonWriter(Writer & writer)
: m_writer(writer)
{}
void Write(FileData const & fileData);
private:
Writer & m_writer;
};
} // namespace geojson
} // namespace kml