FOSSology  4.4.0
Open Source License Compliance by Open Source Software
ninkawrapper.hpp
1 /*
2  SPDX-FileCopyrightText: © 2014-2015 Siemens AG
3 
4  SPDX-License-Identifier: GPL-2.0-only
5 */
6 
7 #ifndef NINKA_AGENT_NINKA_WRAPPER_HPP
8 #define NINKA_AGENT_NINKA_WRAPPER_HPP
9 
10 #define AGENT_NAME "ninka"
11 #define AGENT_DESC "ninka agent"
12 #define AGENT_ARS "ninka_ars"
13 
14 #include <string>
15 #include <vector>
16 #include "files.hpp"
17 #include "licensematch.hpp"
18 #include "state.hpp"
19 
20 using namespace std;
21 
22 string scanFileWithNinka(const State& state, const fo::File& file);
23 vector<string> extractLicensesFromNinkaResult(string ninkaResult);
24 string extractLicensePartFromNinkaResult(string ninkaResult);
25 vector<string> splitLicensePart(string licensePart);
26 vector<LicenseMatch> createMatches(vector<string> ninkaLicenseNames);
27 string mapLicenseFromNinkaToFossology(string name);
28 bool isLicenseCollection(string ninkaLicenseName,vector<LicenseMatch>& matches);
29 
30 #endif // NINKA_AGENT_NINKA_WRAPPER_HPP
Definition: state.hpp:16
Class to handle file related operations.
Definition: files.hpp:26
Utility functions for file handling.