goldendict-ng/src/metadata.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
387 B
C++
Raw Normal View History

#pragma once
#include <QStringView>
#include <optional>
#include <vector>
namespace Metadata {
/**
* Represent the metadata.toml beside the dictionary files
*/
struct result
{
std::optional< std::vector< std::string > > categories;
std::optional< std::string > name;
};
[[nodiscard]] std::optional< Metadata::result > load( std::string_view filepath );
} // namespace Metadata