6#include <unordered_map>
9#include "../helpers/String.h"
24 CveBscMap(
const CveBscMap &) =
delete;
25 CveBscMap &operator=(
const CveBscMap &) =
delete;
36 CveBscMap(
const std::filesystem::path &cve2Bugzilla);
43 std::string_view
getBsc(std::string_view cve)
const {
44 const auto it = m_cveBscMap.find(cve);
45 if (it != m_cveBscMap.cend())
57 std::string_view
getCve(std::string_view bsc)
const
59 const auto it = m_bscCveMap.find(bsc);
60 if (it != m_bscCveMap.cend())
std::unordered_map< std::string, std::string, SlHelpers::String::Hash, SlHelpers::String::Eq > Map
CVE -> Bugzilla mapping.
Definition CveBscMap.h:19
CveBscMap & operator=(CveBscMap &&)=default
Move assignment operator.
CveBscMap(CveBscMap &&)=default
Move constructor.
std::string_view getBsc(std::string_view cve) const
Get bugzilla number for a CVE cve.
Definition CveBscMap.h:43
CveBscMap(const std::filesystem::path &cve2Bugzilla)
Create a new CveBscMap map from cve2Bugzilla.
std::string_view getCve(std::string_view bsc) const
Get CVE number for a bugzilla bsc.
Definition CveBscMap.h:57
Equality test for string and string_view to be used in containers.
Definition String.h:281
Hash for string and string_view to be used in hashing containers.
Definition String.h:254