FOSSredder 0.5.0
Loading...
Searching...
No Matches
AnalysisPolicy.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <string>
9#include <utility>
10
15
17
23bool supportsResultType(const std::string& type);
24
30bool isTabularType(const std::string& type);
31
37bool isChartLikeType(const std::string& type);
38
45bool isExportable(const std::string& type, const std::string& exportFormat);
46
52std::string normalizeKey(std::string key);
53
62bool isConfigured(const std::string& type,
63 const std::string& configJson,
64 const std::string& filterSpec,
65 const std::string& exportFormat);
66
73std::string resolveOutputType(const std::string& type, const std::string& configJson);
74
80std::string resolveExecutionType(const std::string& type);
81
82} // namespace core::domain::policies::analysis
Defines stable analysis type, configuration, filter, and result keys.
Value object for analysis type labels.
Value object for export format labels.
Value object for analysis filter specifications.
bool isConfigured(const std::string &type, const std::string &configJson, const std::string &filterSpec, const std::string &exportFormat)
Checks whether an analysis is sufficiently configured.
bool isExportable(const std::string &type, const std::string &exportFormat)
Checks whether an analysis type can be exported.
bool supportsResultType(const std::string &type)
Checks whether an analysis type is supported at all.
std::string resolveOutputType(const std::string &type, const std::string &configJson)
Resolves the effective output type for an analysis.
bool isChartLikeType(const std::string &type)
Checks whether an analysis type produces chart-like output.
bool isTabularType(const std::string &type)
Checks whether an analysis type produces tabular output.
std::string resolveExecutionType(const std::string &type)
Resolves the effective execution type for an analysis.
std::string normalizeKey(std::string key)
Normalizes filter keys used by analysis adjustments.