SlHelpers
Loading...
Searching...
No Matches
SlCVEs::CveBscMap Class Reference

Map between CVE and bugzilla numbers. More...

#include <CveBscMap.h>

Public Types

using Map
 CVE -> Bugzilla mapping.

Public Member Functions

 CveBscMap (const CveBscMap &)=delete
CveBscMap & operator= (const CveBscMap &)=delete
 CveBscMap (CveBscMap &&)=default
 Move constructor.
CveBscMap & operator= (CveBscMap &&)=default
 Move assignment operator.
 CveBscMap (const std::filesystem::path &cve2Bugzilla)
 Create a new CveBscMap map from cve2Bugzilla.
std::string_view getBsc (std::string_view cve) const
 Get bugzilla number for a CVE cve.
std::string_view getCve (std::string_view bsc) const
 Get CVE number for a bugzilla bsc.

Detailed Description

Map between CVE and bugzilla numbers.

Member Typedef Documentation

◆ Map

Initial value:
std::unordered_map<std::string, std::string, SlHelpers::String::Hash,
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

CVE -> Bugzilla mapping.

Constructor & Destructor Documentation

◆ CveBscMap()

SlCVEs::CveBscMap::CveBscMap ( const std::filesystem::path & cve2Bugzilla)

Create a new CveBscMap map from cve2Bugzilla.

Parameters
cve2BugzillaFile to parse

Member Function Documentation

◆ getBsc()

std::string_view SlCVEs::CveBscMap::getBsc ( std::string_view cve) const
inline

Get bugzilla number for a CVE cve.

Parameters
cveCVE number
Returns
Bugzilla number or an empty string

◆ getCve()

std::string_view SlCVEs::CveBscMap::getCve ( std::string_view bsc) const
inline

Get CVE number for a bugzilla bsc.

Parameters
bscBugzilla number
Returns
CVE number or an empty string

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260723.5ab24d1-build/slhelpers-20260723.5ab24d1/include/cves/CveBscMap.h