FOSSology
4.4.0
Open Source License Compliance by Open Source Software
match.hpp
1
/*
2
SPDX-FileCopyrightText: © 2021 Sarita Singh <saritasingh.0425@gmail.com>
3
4
SPDX-License-Identifier: GPL-2.0-only
5
*/
6
7
#ifndef SCANCODE_AGENT_MATCH_HPP
8
#define SCANCODE_AGENT_MATCH_HPP
9
10
#include <string>
11
12
using namespace
std;
13
18
class
Match
{
19
public
:
20
Match
(
string
matchName,
string
type,
unsigned
startPosition,
unsigned
length);
21
Match
(
string
matchName,
int
percentage,
string
licenseFullName,
22
string
textUrl,
unsigned
startPosition,
unsigned
length);
23
Match
(
string
matchName);
24
~
Match
();
25
const
string
getType()
const
;
26
const
string
getMatchName()
const
;
27
int
getPercentage()
const
;
28
const
string
getLicenseFullName()
const
;
29
const
string
getTextUrl()
const
;
30
unsigned
getStartPosition()
const
;
31
unsigned
getLength()
const
;
32
33
private
:
34
41
string
matchName
;
42
46
string
type
;
47
51
int
percentage
;
52
56
string
licenseFullName
;
57
61
string
textUrl
;
62
66
unsigned
startPosition
;
67
71
unsigned
length
;
72
};
73
74
#endif
// SCANCODE_AGENT_MATCH_HPP
Match
Definition:
match.h:20
Match::startPosition
unsigned startPosition
Definition:
match.hpp:66
Match::licenseFullName
string licenseFullName
Definition:
match.hpp:56
Match::percentage
int percentage
Definition:
match.hpp:51
Match::textUrl
string textUrl
Definition:
match.hpp:61
Match::matchName
string matchName
Definition:
match.hpp:41
Match::type
string type
Definition:
match.hpp:46
Match::length
unsigned length
Definition:
match.hpp:71
src
scancode
agent
match.hpp
Generated on Mon Nov 18 2024 07:37:13 for FOSSology by
1.9.1