FOSSredder 0.5.0
Loading...
Searching...
No Matches
core::domain::policies::analysis Namespace Reference

Functions

bool supportsResultType (const std::string &type)
 Checks whether an analysis type is supported at all.
bool isTabularType (const std::string &type)
 Checks whether an analysis type produces tabular output.
bool isChartLikeType (const std::string &type)
 Checks whether an analysis type produces chart-like output.
bool isExportable (const std::string &type, const std::string &exportFormat)
 Checks whether an analysis type can be exported.
std::string normalizeKey (std::string key)
 Normalizes filter keys used by analysis adjustments.
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.
std::string resolveOutputType (const std::string &type, const std::string &configJson)
 Resolves the effective output type for an analysis.
std::string resolveExecutionType (const std::string &type)
 Resolves the effective execution type for an analysis.

Function Documentation

◆ isChartLikeType()

bool core::domain::policies::analysis::isChartLikeType ( const std::string & type)

Checks whether an analysis type produces chart-like output.

Parameters
typeRaw analysis type.
Returns
true for supported chart-like types.

Definition at line 23 of file AnalysisPolicy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isConfigured()

bool core::domain::policies::analysis::isConfigured ( const std::string & type,
const std::string & configJson,
const std::string & filterSpec,
const std::string & exportFormat )

Checks whether an analysis is sufficiently configured.

Parameters
typeRaw analysis type.
configJsonRaw configuration payload.
filterSpecRaw filter specification.
exportFormatRaw export format.
Returns
true when any meaningful analysis configuration is present.

Definition at line 37 of file AnalysisPolicy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isExportable()

bool core::domain::policies::analysis::isExportable ( const std::string & type,
const std::string & exportFormat )

Checks whether an analysis type can be exported.

Parameters
typeRaw analysis type.
exportFormatRaw export format.
Returns
true when both type and export format are set.

Definition at line 29 of file AnalysisPolicy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isTabularType()

bool core::domain::policies::analysis::isTabularType ( const std::string & type)

Checks whether an analysis type produces tabular output.

Parameters
typeRaw analysis type.
Returns
true when the normalized type equals the tabular type key.

Definition at line 19 of file AnalysisPolicy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ normalizeKey()

std::string core::domain::policies::analysis::normalizeKey ( std::string key)

Normalizes filter keys used by analysis adjustments.

Parameters
keyRaw adjustment key.
Returns
Normalized key text.

Definition at line 33 of file AnalysisPolicy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveExecutionType()

std::string core::domain::policies::analysis::resolveExecutionType ( const std::string & type)

Resolves the effective execution type for an analysis.

Parameters
typeRaw analysis type.
Returns
Effective execution type key.

Definition at line 68 of file AnalysisPolicy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveOutputType()

std::string core::domain::policies::analysis::resolveOutputType ( const std::string & type,
const std::string & configJson )

Resolves the effective output type for an analysis.

Parameters
typeRaw analysis type.
configJsonRaw configuration payload.
Returns
Resolved output type key.

Definition at line 47 of file AnalysisPolicy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ supportsResultType()

bool core::domain::policies::analysis::supportsResultType ( const std::string & type)

Checks whether an analysis type is supported at all.

Parameters
typeRaw analysis type.
Returns
true when the normalized type is non-empty.

Definition at line 14 of file AnalysisPolicy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: