18 #ifndef NINKA_AGENT_NINKA_WRAPPER_HPP 19 #define NINKA_AGENT_NINKA_WRAPPER_HPP 21 #define AGENT_NAME "ninka" 22 #define AGENT_DESC "ninka agent" 23 #define AGENT_ARS "ninka_ars" 28 #include "licensematch.hpp" 33 string scanFileWithNinka(
const State& state,
const fo::File& file);
34 vector<string> extractLicensesFromNinkaResult(
string ninkaResult);
35 string extractLicensePartFromNinkaResult(
string ninkaResult);
36 vector<string> splitLicensePart(
string licensePart);
37 vector<LicenseMatch> createMatches(vector<string> ninkaLicenseNames);
38 string mapLicenseFromNinkaToFossology(
string name);
39 bool isLicenseCollection(
string ninkaLicenseName,vector<LicenseMatch>& matches);
41 #endif // NINKA_AGENT_NINKA_WRAPPER_HPP
Class to handle file related operations.
Utility functions for file handling.