SlHelpers
SlCVEs::CveBscMap Class Reference

Map between CVE and bugzilla numbers. More...

#include <CveBscMap.h>

Public Types

using Map = std::unordered_map< std::string, std::string, SlHelpers::String::Hash, SlHelpers::String::Eq >
 CVE -> Bugzilla mapping.
 

Public Member Functions

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

Detailed Description

Map between CVE and bugzilla numbers.

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: