|
FOSSredder 0.5.0
|
#include <Annual.h>
Public Member Functions | |
| Annual () | |
| Annual (const Annual &)=delete | |
| Annual (Annual &&)=delete | |
| Annual & | operator= (const Annual &)=delete |
| Annual & | operator= (Annual &&)=delete |
| void | rename (EntityName value) |
| Renames the annual aggregate with normalized entity text. | |
| void | rename (std::string value) |
| Renames the annual aggregate with raw text. | |
| void | setYear (Year value) |
| Sets the annual year from a value object. | |
| void | setYear (int value) |
| Sets the annual year from raw input. | |
| void | apply (std::string nameValue, int yearValue, std::vector< std::string > analysisIdsValue) |
| Applies the complete annual definition in one normalized domain step. | |
| void | setAnalysisIds (std::vector< std::string > value) |
| Replaces the linked analysis ids with normalized values. | |
| void | addAnalysisId (std::string value) |
| Adds an analysis id when it is not already present. | |
| void | insertAnalysisId (std::string value, std::size_t position) |
| Inserts an analysis id at a requested position. | |
| void | removeAnalysisId (const std::string &value) |
| Removes an analysis id from the annual aggregate. | |
| void | clearAnalysisIds () |
| Clears all linked analysis ids. | |
| bool | containsAnalysisId (const std::string &value) const |
| Checks whether an analysis id exists. | |
| std::size_t | indexOfAnalysisId (const std::string &value) const |
| Returns the index of an analysis id. | |
| void | moveAnalysisId (const std::string &value, std::size_t newPosition) |
| Moves an analysis id to a new position. | |
| std::size_t | analysisCount () const noexcept |
| Returns the number of linked analysis ids. | |
| bool | hasYear () const noexcept |
| Checks whether the annual year is valid. | |
| bool | isEmpty () const noexcept |
| Checks whether the annual aggregate is empty. | |
| const std::string & | id () const noexcept |
| const std::string & | name () const noexcept |
| const int & | year () const noexcept |
| const std::vector< std::string > & | analysisIds () const noexcept |
| const std::string & | createdAt () const noexcept |
| const std::string & | updatedAt () const noexcept |
| void | setId (std::string value) |
| void | setCreatedAt (std::string value) |
| void | setUpdatedAt (std::string value) |
|
default |
|
delete |
|
delete |
| void core::domain::Annual::addAnalysisId | ( | std::string | value | ) |
Adds an analysis id when it is not already present.
| value | Analysis id to add. |
Definition at line 43 of file Annual.cpp.
|
nodiscardnoexcept |
Returns the number of linked analysis ids.
Definition at line 105 of file Annual.cpp.
|
nodiscardnoexcept |
Definition at line 120 of file Annual.cpp.
| void core::domain::Annual::apply | ( | std::string | nameValue, |
| int | yearValue, | ||
| std::vector< std::string > | analysisIdsValue ) |
Applies the complete annual definition in one normalized domain step.
| nameValue | Raw annual name text. |
| yearValue | Raw year value. |
| analysisIdsValue | Analysis id list to store. |
Definition at line 32 of file Annual.cpp.
| void core::domain::Annual::clearAnalysisIds | ( | ) |
Clears all linked analysis ids.
Definition at line 69 of file Annual.cpp.
|
nodiscard |
Checks whether an analysis id exists.
| value | Analysis id to search for. |
Definition at line 73 of file Annual.cpp.
|
nodiscardnoexcept |
Definition at line 121 of file Annual.cpp.
|
nodiscardnoexcept |
Checks whether the annual year is valid.
Definition at line 109 of file Annual.cpp.
|
nodiscardnoexcept |
Definition at line 117 of file Annual.cpp.
|
nodiscard |
Returns the index of an analysis id.
| value | Analysis id to search for. |
Definition at line 77 of file Annual.cpp.
| void core::domain::Annual::insertAnalysisId | ( | std::string | value, |
| std::size_t | position ) |
Inserts an analysis id at a requested position.
| value | Analysis id to insert. |
| position | Target insertion position. |
Definition at line 51 of file Annual.cpp.
|
nodiscardnoexcept |
Checks whether the annual aggregate is empty.
Definition at line 113 of file Annual.cpp.
| void core::domain::Annual::moveAnalysisId | ( | const std::string & | value, |
| std::size_t | newPosition ) |
Moves an analysis id to a new position.
| value | Analysis id to move. |
| newPosition | New insertion position. |
Definition at line 86 of file Annual.cpp.
|
nodiscardnoexcept |
Definition at line 118 of file Annual.cpp.
| void core::domain::Annual::removeAnalysisId | ( | const std::string & | value | ) |
Removes an analysis id from the annual aggregate.
| value | Analysis id to remove. |
Definition at line 64 of file Annual.cpp.
| void core::domain::Annual::rename | ( | EntityName | value | ) |
Renames the annual aggregate with normalized entity text.
| value | Normalized entity name wrapper. |
Definition at line 16 of file Annual.cpp.
| void core::domain::Annual::rename | ( | std::string | value | ) |
Renames the annual aggregate with raw text.
| value | Raw entity name text. |
Definition at line 20 of file Annual.cpp.
| void core::domain::Annual::setAnalysisIds | ( | std::vector< std::string > | value | ) |
Replaces the linked analysis ids with normalized values.
| value | Analysis id list to store. |
Definition at line 38 of file Annual.cpp.
| void core::domain::Annual::setCreatedAt | ( | std::string | value | ) |
Definition at line 124 of file Annual.cpp.
| void core::domain::Annual::setId | ( | std::string | value | ) |
Definition at line 123 of file Annual.cpp.
| void core::domain::Annual::setUpdatedAt | ( | std::string | value | ) |
Definition at line 125 of file Annual.cpp.
| void core::domain::Annual::setYear | ( | int | value | ) |
Sets the annual year from raw input.
| value | Raw year value. |
Definition at line 28 of file Annual.cpp.
| void core::domain::Annual::setYear | ( | Year | value | ) |
Sets the annual year from a value object.
| value | Normalized year wrapper. |
Definition at line 24 of file Annual.cpp.
|
nodiscardnoexcept |
Definition at line 122 of file Annual.cpp.
|
nodiscardnoexcept |
Definition at line 119 of file Annual.cpp.