SlHelpers
SlCVEs::CVE2Bugzilla Class Reference

Map between CVE and bugzilla numbers. More...

#include <CVE2Bugzilla.h>

Public Types

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

Public Member Functions

std::string get_bsc (std::string_view cve_number) const
 Get bugzilla number for a CVE. More...
 
std::string get_cve (std::string_view bsc_number) const
 Get CVE number for a bugzilla. More...
 

Static Public Member Functions

static std::optional< CVE2Bugzillacreate (const std::filesystem::path &cve2bugzilla) noexcept
 Create a new CVE2Bugzilla map from cve2bugzilla. More...
 

Detailed Description

Map between CVE and bugzilla numbers.

Member Function Documentation

◆ create()

static std::optional<CVE2Bugzilla> SlCVEs::CVE2Bugzilla::create ( const std::filesystem::path &  cve2bugzilla)
staticnoexcept

Create a new CVE2Bugzilla map from cve2bugzilla.

Parameters
cve2bugzillaFile to parse
Returns
CVE2Bugzilla or nullopt on failure

◆ get_bsc()

std::string SlCVEs::CVE2Bugzilla::get_bsc ( std::string_view  cve_number) const

Get bugzilla number for a CVE.

Parameters
cve_numberCVE number
Returns
Bugzilla number or an empty string

◆ get_cve()

std::string SlCVEs::CVE2Bugzilla::get_cve ( std::string_view  bsc_number) const

Get CVE number for a bugzilla.

Parameters
bsc_numberBugzilla number
Returns
CVE number or an empty string

The documentation for this class was generated from the following file: