7 #ifndef NINKA_AGENT_NINKA_WRAPPER_HPP
8 #define NINKA_AGENT_NINKA_WRAPPER_HPP
10 #define AGENT_NAME "ninka"
11 #define AGENT_DESC "ninka agent"
12 #define AGENT_ARS "ninka_ars"
17 #include "licensematch.hpp"
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);
Class to handle file related operations.
Utility functions for file handling.