FOSSology  4.4.0
Open Source License Compliance by Open Source Software
CompatibilityState.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 */
11 #ifndef COMPATIBILITY_AGENT_STATE_HPP
12 #define COMPATIBILITY_AGENT_STATE_HPP
13 
14 #include "CompatibilityAgent.hpp"
16 
17 using namespace std;
18 
24 {
25 private:
26  int verbosity;
27  bool json;
29 public:
30  bool isVerbosityDebug() const;
31  bool doJsonOutput() const;
32 
33  CompatibilityCliOptions(int verbosity, bool json);
35 };
36 
42 {
43 public:
44  CompatibilityState(const int agentId,
45  const CompatibilityCliOptions& cliOptions);
46 
47  void setAgentId(const int agentId);
48  int getAgentId() const;
49  const CompatibilityCliOptions& getCliOptions() const;
50  const CompatibilityAgent& getCompatibilityAgent() const;
51 
52 private:
53  int agentId;
56 };
57 
58 #endif // COMPATIBILITY_AGENT_STATE_HPP
Store the options sent through the CLI.
Store the state of the agent.
CompatibilityAgent compatibilityAgent
const CompatibilityCliOptions cliOptions
DB wrapper for agents.