#pragma once

#include <maps/wikimap/mapspro/services/mrc/libs/db/include/walk_object.h>
#include <maps/wikimap/mapspro/services/mrc/libs/fb/include/common.h>
#include <maps/wikimap/mapspro/services/mrc/libs/fb_rtree/include/packer.h>

namespace maps::mrc::fb {

class WalkObjectsWriter {
public:
    /// point walk objects only
    void add(const db::WalkObject&);

    void dump(const std::string& version, const std::string& toDirectory);

private:
    std::vector<WalkObject> walkObjects_;
    fb_rtree::LeafNodes leafNodes_;
};

}  // namespace maps::mrc::fb
