7#include <unordered_map>
10#include "../helpers/String.h"
23 CVE2Bugzilla() =
delete;
30 static std::optional<CVE2Bugzilla>
create(
const std::filesystem::path &cve2bugzilla)
noexcept;
37 std::string
get_bsc(std::string_view cve_number)
const;
44 std::string
get_cve(std::string_view bsc_number)
const;
46 CVE2Bugzilla(
Map cve_bsc_map,
Map bsc_cve_map) :
47 m_cve_bsc_map(std::move(cve_bsc_map)),
48 m_bsc_cve_map(std::move(bsc_cve_map)) {}
std::string get_cve(std::string_view bsc_number) const
Get CVE number for a bugzilla.
std::string get_bsc(std::string_view cve_number) const
Get bugzilla number for a CVE.
std::unordered_map< std::string, std::string, SlHelpers::String::Hash, SlHelpers::String::Eq > Map
CVE -> Bugzilla mapping.
Definition CVE2Bugzilla.h:20
static std::optional< CVE2Bugzilla > create(const std::filesystem::path &cve2bugzilla) noexcept
Create a new CVE2Bugzilla map from cve2bugzilla.
Equality test for string and string_view to be used in containers.
Definition String.h:250
Hash for string and string_view to be used in hashing containers.
Definition String.h:223