Raptor 4.0.0-rc.1
A fast and space-efficient pre-filter
Loading...
Searching...
No Matches
write_metadata.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2006-2026 Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2026 Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
10#pragma once
11
12#include <iosfwd>
13
14#include "index_metadata.hpp"
15
16namespace raptor::detail
17{
18
28void write_text(std::ostream & stream, index_metadata const & metadata, bool const user_bins);
29
36void write_json(std::ostream & stream, index_metadata const & metadata, bool const user_bins);
37
38} // namespace raptor::detail
Provides raptor::detail::index_metadata and raptor::detail::read_index_metadata.
void write_json(std::ostream &stream, index_metadata const &metadata, bool const user_bins)
Writes metadata as a single JSON object.
Definition write_metadata.cpp:168
void write_text(std::ostream &stream, index_metadata const &metadata, bool const user_bins)
Writes metadata as ## Key = value lines, like the header of a raptor search result.
Definition write_metadata.cpp:65
Hide me