FOSSology  4.5.1
Open Source License Compliance by Open Source Software
compatibility.hpp
1 /*
2  SPDX-FileCopyrightText: © 2024 Siemens AG
3 
4  SPDX-License-Identifier: GPL-2.0-only
5 */
6 
7 #ifndef COMPATIBILITY_AGENT_COMPATIBILITY_HPP
8 #define COMPATIBILITY_AGENT_COMPATIBILITY_HPP
9 
10 #include "CompatibilityAgent.hpp"
11 #include "CompatibilityUtils.hpp"
12 
13 #include <fstream>
14 #include <iostream>
15 #include <sstream>
16 #include <tuple>
17 
18 extern "C"
19 {
20 #include "libfossagent.h"
21 }
22 
23 using namespace std;
24 vector<tuple<string, string, bool>> checkCompatibility(
25  const set<string>& license_list,
26  const unordered_map<string, string>& license_map,
27  const map<tuple<string, string, string, string>, bool>& rule_list,
28  map<tuple<string, string>, bool>& scan_results);
29 
30 #endif // COMPATIBILITY_AGENT_COMPATIBILITY_HPP
vector< tuple< string, string, bool > > checkCompatibility(const set< string > &license_set, const unordered_map< string, string > &license_map, const map< tuple< string, string, string, string >, bool > &rule_list, map< tuple< string, string >, bool > &scan_results)
find the compatibility for cli mode