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