FOSSredder 0.5.0
Loading...
Searching...
No Matches
AnalysisKeys.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <string_view>
9
11
12inline constexpr std::string_view kTypeTab = "tab";
13inline constexpr std::string_view kTypePlot = "plot";
14inline constexpr std::string_view kTypeCalculation = "calc";
15inline constexpr std::string_view kPlotTypeKey = "plotType";
16inline constexpr std::string_view kPlotMeasureKey = "plotMeasure";
17inline constexpr std::string_view kPropertiesKey = "properties";
18inline constexpr std::string_view kContractTypesKey = "contractTypes";
19
20namespace plotTypes {
21inline constexpr std::string_view kPie = "pie";
22inline constexpr std::string_view kHistogram = "histogram";
23} // namespace plotTypes
24
25namespace plotMeasures {
26inline constexpr std::string_view kCount = "count";
27inline constexpr std::string_view kAverageAmount = "averageAmount";
28inline constexpr std::string_view kTotalAmount = "totalAmount";
29} // namespace plotMeasures
30
31namespace metricKeys {
32inline constexpr std::string_view kTotalAmount = "totalAmount";
33inline constexpr std::string_view kRowCount = "rowCount";
34inline constexpr std::string_view kMatchedTransactions = "matchedTx";
35inline constexpr std::string_view kRows = "rows";
36} // namespace metricKeys
37
38namespace calculation {
39inline constexpr std::string_view kStrategyKey = "strategy";
40inline constexpr std::string_view kPercentKey = "percent";
41inline constexpr std::string_view kStrategyTax = "tax";
42} // namespace calculation
43
44namespace resultFields {
45inline constexpr std::string_view kMonth = "month";
46inline constexpr std::string_view kTotal = "total";
47inline constexpr std::string_view kByContract = "byContract";
48inline constexpr std::string_view kByProperty = "byProperty";
49inline constexpr std::string_view kAmountOriginal = "amount_original";
50inline constexpr std::string_view kAmountAdjusted = "amount_adjusted";
51inline constexpr std::string_view kTaxPercent = "taxPercent";
52inline constexpr std::string_view kTaxFactor = "taxFactor";
53inline constexpr std::string_view kTransactionId = "txId";
54} // namespace resultFields
55
56namespace labels {
57inline constexpr std::string_view kNoProperty = "(no-property)";
58} // namespace labels
59
60} // namespace core::application::analysis::keys
61
63
64inline constexpr std::string_view kDate = "date";
65inline constexpr std::string_view kDateField = "dateField";
66inline constexpr std::string_view kAmount = "amount";
67inline constexpr std::string_view kContractType = "contract.type";
68inline constexpr std::string_view kPropertyId = "propertyId";
69inline constexpr std::string_view kAllocatable = "allocatable";
70inline constexpr std::string_view kUnassigned = "unassigned";
71
72namespace operators {
73inline constexpr std::string_view kGreaterEqual = ">=";
74inline constexpr std::string_view kLessEqual = "<=";
75inline constexpr std::string_view kNotEqual = "!=";
76inline constexpr std::string_view kGreater = ">";
77inline constexpr std::string_view kLess = "<";
78inline constexpr std::string_view kEqual = "=";
79} // namespace operators
80
81namespace separators {
82inline constexpr char kClause = ';';
83inline constexpr char kAlternatives = '|';
84inline constexpr char kList = ',';
85inline constexpr char kDateParts = '.';
86} // namespace separators
87
88} // namespace core::application::analysis::filterKeys
constexpr std::string_view kDateField
constexpr std::string_view kContractType
constexpr std::string_view kAmount
constexpr std::string_view kDate
constexpr std::string_view kPropertyId
constexpr std::string_view kAllocatable
constexpr std::string_view kUnassigned
constexpr std::string_view kNoProperty
constexpr std::string_view kMatchedTransactions
constexpr std::string_view kTypeCalculation
constexpr std::string_view kTypePlot
constexpr std::string_view kPlotTypeKey
constexpr std::string_view kTypeTab
constexpr std::string_view kPropertiesKey
constexpr std::string_view kPlotMeasureKey
constexpr std::string_view kContractTypesKey