FOSSology  4.4.0
Open Source License Compliance by Open Source Software
CompatibilityAgent.hpp
Go to the documentation of this file.
1 /*
2  SPDX-FileCopyrightText: © 2024 Siemens AG
3 
4  SPDX-License-Identifier: GPL-2.0-only
5 */
9 #ifndef SRC_COMPATIBILITY_AGENT_COMPATIBILITYAGENT_HPP_
10 #define SRC_COMPATIBILITY_AGENT_COMPATIBILITYAGENT_HPP_
11 
13 
14 #include <fstream>
15 #include <iostream>
16 #include <string>
17 #include <tuple>
18 #include <vector>
19 
25 {
26 public:
27  CompatibilityAgent(int agentId, bool verbosityDebug);
29  vector<unsigned long>& licId, unsigned long& pFileId,
30  CompatibilityDatabaseHandler& databaseHandler) const;
31  void setAgentId(const int agentId);
32 
33 private:
34  int agentId;
35  bool verbosityDebug;
36 };
37 
38 #endif /* SRC_COMPATIBILITY_AGENT_COMPATIBILITYAGENT_HPP_ */
Database handler for COMPATIBILITY.
CompatibilityAgent(int agentId, bool verbosityDebug)
bool checkCompatibilityForPfile(vector< unsigned long > &licId, unsigned long &pFileId, CompatibilityDatabaseHandler &databaseHandler) const
find the compatibility between the licenses using scheduler mode
void setAgentId(const int agentId)
Set the agent ID for the agent object.