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 
52 
57 
61  string textUrl;
62 
66  unsigned startPosition;
67 
71  unsigned length;
72 };
73 
74 #endif // SCANCODE_AGENT_MATCH_HPP
Definition: match.h:20
unsigned startPosition
Definition: match.hpp:66
string licenseFullName
Definition: match.hpp:56
int percentage
Definition: match.hpp:51
string textUrl
Definition: match.hpp:61
string matchName
Definition: match.hpp:41
string type
Definition: match.hpp:46
unsigned length
Definition: match.hpp:71