|
FOSSredder 0.5.0
|
Classes | |
| class | AnnualValidationIssue |
| class | AnnualValidationResult |
Functions | |
| bool | isValidYear (int year) |
| Checks whether a year is valid for annual aggregates. | |
| bool | isValidAnnual (int year, const std::vector< std::string > &analysisIds) |
| Checks whether an annual aggregate is structurally valid. | |
| std::string | normalizeId (std::string value) |
| Trims leading and trailing whitespace from an id. | |
| bool | containsAnalysisId (const std::vector< std::string > &analysisIds, const std::string &analysisId) |
| Checks whether an analysis id exists in a list. | |
| bool | hasUniqueAnalysisIds (const std::vector< std::string > &analysisIds) |
| Checks whether all analysis ids are unique. | |
| bool | containsAllAnalysisIds (const std::vector< std::string > &analysisIds, const std::vector< std::string > &requiredIds) |
| Checks whether a list contains all required analysis ids. | |
| void | normalizeIds (std::vector< std::string > &values) |
| Normalizes and deduplicates analysis ids. | |
| std::optional< int > | extractBookingYear (const std::string &bookingDate) |
| Extracts the year component from a booking date. | |
| AnnualValidationResult | validateTransactionsForYear (int year, const std::vector< std::shared_ptr< core::domain::Transaction > > &transactions) |
| Validates that transaction booking years match the annual year. | |
| bool core::domain::policies::annual::containsAllAnalysisIds | ( | const std::vector< std::string > & | analysisIds, |
| const std::vector< std::string > & | requiredIds ) |
Checks whether a list contains all required analysis ids.
| analysisIds | Analysis id list to inspect. |
| requiredIds | Required analysis ids. |
Definition at line 58 of file AnnualPolicy.cpp.
| bool core::domain::policies::annual::containsAnalysisId | ( | const std::vector< std::string > & | analysisIds, |
| const std::string & | analysisId ) |
Checks whether an analysis id exists in a list.
Definition at line 41 of file AnnualPolicy.cpp.


| std::optional< int > core::domain::policies::annual::extractBookingYear | ( | const std::string & | bookingDate | ) |
Extracts the year component from a booking date.
| bookingDate | Raw booking date text. |
Definition at line 78 of file AnnualPolicy.cpp.


| bool core::domain::policies::annual::hasUniqueAnalysisIds | ( | const std::vector< std::string > & | analysisIds | ) |
Checks whether all analysis ids are unique.
| analysisIds | Analysis id list to inspect. |
Definition at line 46 of file AnnualPolicy.cpp.

| bool core::domain::policies::annual::isValidAnnual | ( | int | year, |
| const std::vector< std::string > & | analysisIds ) |
Checks whether an annual aggregate is structurally valid.
| year | Raw year value. |
| analysisIds | Analysis id list. |
Definition at line 32 of file AnnualPolicy.cpp.

| bool core::domain::policies::annual::isValidYear | ( | int | year | ) |
Checks whether a year is valid for annual aggregates.
| year | Raw year value. |
Definition at line 31 of file AnnualPolicy.cpp.


|
inline |
Trims leading and trailing whitespace from an id.
| value | Raw id text. |
Definition at line 34 of file AnnualPolicy.cpp.

| void core::domain::policies::annual::normalizeIds | ( | std::vector< std::string > & | values | ) |
Normalizes and deduplicates analysis ids.
| values | Analysis id list to mutate. |
Definition at line 62 of file AnnualPolicy.cpp.


| AnnualValidationResult core::domain::policies::annual::validateTransactionsForYear | ( | int | year, |
| const std::vector< std::shared_ptr< core::domain::Transaction > > & | transactions ) |
Validates that transaction booking years match the annual year.
| year | Annual year. |
| transactions | Transactions to validate. |
Definition at line 99 of file AnnualPolicy.cpp.
