FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
#include <match.hpp>
Public Member Functions | |
Match (string matchName, string type, unsigned startPosition, unsigned length) | |
constructor for match class intended to store copyright/holder information More... | |
Match (string matchName, int percentage, string licenseFullName, string textUrl, unsigned startPosition, unsigned length) | |
constructor for match class intended to store license information More... | |
Match (string matchName) | |
constructor for match class intended to store No license information More... | |
~Match () | |
const string | getType () const |
get the match type More... | |
const string | getMatchName () const |
get the match name More... | |
int | getPercentage () const |
get the percent match More... | |
const string | getLicenseFullName () const |
get the license full name More... | |
const string | getTextUrl () const |
get the reference text URL More... | |
unsigned | getStartPosition () const |
get the start byte of the matched text More... | |
unsigned | getLength () const |
get the match text length More... | |
Public Attributes | |
const License * | license |
union { | |
DiffPoint * full | |
DiffResult * diff | |
} | ptr |
int | type |
Private Attributes | |
string | matchName |
string | type |
int | percentage |
string | licenseFullName |
string | textUrl |
unsigned | startPosition |
unsigned | length |
class to store license/copyright information for an upload scanned with scancode-toolkit
Match::Match | ( | string | matchName, |
string | type, | ||
unsigned | startPosition, | ||
unsigned | length | ||
) |
Match::Match | ( | string | matchName, |
int | percentage, | ||
string | licenseFullName, | ||
string | textUrl, | ||
unsigned | startPosition, | ||
unsigned | length | ||
) |
constructor for match class intended to store license information
matchName | spdx key for license |
percentage | score for license |
licenseFullName | full name of license |
textUrl | reference text url for license |
startPosition | start byte for matched_text |
length | no. of bytes matched |
Match::Match | ( | string | matchName | ) |
unsigned Match::getLength | ( | ) | const |
const string Match::getLicenseFullName | ( | ) | const |
const string Match::getMatchName | ( | ) | const |
int Match::getPercentage | ( | ) | const |
unsigned Match::getStartPosition | ( | ) | const |
const string Match::getTextUrl | ( | ) | const |
const string Match::getType | ( | ) | const |
|
private |
|
private |
|
private |
|
private |