FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
OjoState.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019, Siemens AG
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * version 2 as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16  */
22 #ifndef OJOS_AGENT_STATE_HPP
23 #define OJOS_AGENT_STATE_HPP
24 
26 #include "OjoAgent.hpp"
27 
28 using namespace std;
29 
35 {
36  private:
37  int verbosity;
38  bool json;
41  public:
42  bool isVerbosityDebug() const;
43  bool doJsonOutput() const;
44  bool doignoreFilesWithMimeType() const;
45 
46  OjoCliOptions(int verbosity, bool json, bool ignoreFilesWithMimeType);
47  OjoCliOptions();
48 };
49 
54 class OjoState
55 {
56  public:
57  OjoState(const int agentId, const OjoCliOptions &cliOptions);
58 
59  void setAgentId(const int agentId);
60  int getAgentId() const;
61  const OjoCliOptions& getCliOptions() const;
62  const OjoAgent& getOjoAgent() const;
63 
64  private:
65  int agentId;
68 };
69 
70 #endif // OJOS_AGENT_STATE_HPP
DB wrapper for agents.
int agentId
Definition: OjoState.hpp:65
Store the state of the agent.
Definition: OjoState.hpp:54
bool ignoreFilesWithMimeType
Definition: OjoState.hpp:39
const OjoAgent ojoAgent
Definition: OjoState.hpp:67
const OjoCliOptions cliOptions
Definition: OjoState.hpp:66
Store the options sent through the CLI.
Definition: OjoState.hpp:34