|
ORE Studio 0.0.4
|
Service for managing dimensions (nature, origin, treatment). More...
#include <dimension_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| dimension_service (context ctx) | |
| Constructs a dimension_service with required repositories. | |
| std::vector< domain::nature_dimension > | list_nature_dimensions () |
| Lists all nature dimensions. | |
| std::optional< domain::nature_dimension > | find_nature_dimension (const std::string &code) |
| Finds a nature dimension by its code. | |
| void | save_nature_dimension (const domain::nature_dimension &dimension) |
| Saves a nature dimension (creates or updates). | |
| void | remove_nature_dimension (const std::string &code) |
| Removes a nature dimension. | |
| std::vector< domain::nature_dimension > | get_nature_dimension_history (const std::string &code) |
| Gets the version history for a nature dimension. | |
| std::vector< domain::origin_dimension > | list_origin_dimensions () |
| Lists all origin dimensions. | |
| std::optional< domain::origin_dimension > | find_origin_dimension (const std::string &code) |
| Finds an origin dimension by its code. | |
| void | save_origin_dimension (const domain::origin_dimension &dimension) |
| Saves an origin dimension (creates or updates). | |
| void | remove_origin_dimension (const std::string &code) |
| Removes an origin dimension. | |
| std::vector< domain::origin_dimension > | get_origin_dimension_history (const std::string &code) |
| Gets the version history for an origin dimension. | |
| std::vector< domain::treatment_dimension > | list_treatment_dimensions () |
| Lists all treatment dimensions. | |
| std::optional< domain::treatment_dimension > | find_treatment_dimension (const std::string &code) |
| Finds a treatment dimension by its code. | |
| void | save_treatment_dimension (const domain::treatment_dimension &dimension) |
| Saves a treatment dimension (creates or updates). | |
| void | remove_treatment_dimension (const std::string &code) |
| Removes a treatment dimension. | |
| std::vector< domain::treatment_dimension > | get_treatment_dimension_history (const std::string &code) |
| Gets the version history for a treatment dimension. | |
Service for managing dimensions (nature, origin, treatment).
This service provides functionality for:
|
explicit |
Constructs a dimension_service with required repositories.
| ctx | The database context. |
| void save_nature_dimension | ( | const domain::nature_dimension & | dimension | ) |
Saves a nature dimension (creates or updates).
| dimension | The dimension to save |
| void remove_nature_dimension | ( | const std::string & | code | ) |
Removes a nature dimension.
| code | The code of the dimension to remove |
| std::vector< domain::nature_dimension > get_nature_dimension_history | ( | const std::string & | code | ) |
Gets the version history for a nature dimension.
| code | The dimension code |
| void save_origin_dimension | ( | const domain::origin_dimension & | dimension | ) |
Saves an origin dimension (creates or updates).
| dimension | The dimension to save |
| void remove_origin_dimension | ( | const std::string & | code | ) |
Removes an origin dimension.
| code | The code of the dimension to remove |
| std::vector< domain::origin_dimension > get_origin_dimension_history | ( | const std::string & | code | ) |
Gets the version history for an origin dimension.
| code | The dimension code |
| void save_treatment_dimension | ( | const domain::treatment_dimension & | dimension | ) |
Saves a treatment dimension (creates or updates).
| dimension | The dimension to save |
| void remove_treatment_dimension | ( | const std::string & | code | ) |
Removes a treatment dimension.
| code | The code of the dimension to remove |
| std::vector< domain::treatment_dimension > get_treatment_dimension_history | ( | const std::string & | code | ) |
Gets the version history for a treatment dimension.
| code | The dimension code |