forked from viva64/plog-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.h
43 lines (32 loc) · 1010 Bytes
/
application.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// 2006-2008 (c) Viva64.com Team
// 2008-2020 (c) OOO "Program Verification Systems"
#ifndef APPLICATION_H
#define APPLICATION_H
#include "configs.h"
#include <string>
#include <vector>
#include "iworker.h"
#include "outputfactory.h"
namespace PlogConverter
{
Analyzer ParseEnabledAnalyzer(const std::string &str);
void ParseEnabledAnalyzers(std::string str, std::vector<Analyzer>& analyzers);
class Application
{
public:
static const std::string AppName_Default;
static const std::string AppName_Win;
static const std::string AboutPVSStudio;
static const char CmdAnalyzerFlagName_Short;
static const std::string CmdAnalyzerFlagName_Full;
int Exec(int argc, const char **argv);
void AddWorker(std::unique_ptr<IWorker> worker);
OutputFactory outputFactory;
private:
void SetCmdOptions(int argc, const char** argv);
void SetConfigOptions(const std::string& path);
ProgramOptions m_options;
std::vector<std::unique_ptr<IWorker>> m_workers;
};
}
#endif // APPLICATION_H