Curring magic
This commit is contained in:
18
src/services/Cost/CostPipeline.cpp
Normal file
18
src/services/Cost/CostPipeline.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
//
|
||||
// Created by stani on 3/10/2025.
|
||||
//
|
||||
|
||||
#include "CostPipeline.h"
|
||||
|
||||
void CostPipeline::addCostComponent(const std::shared_ptr<ICostComponent>& components)
|
||||
{
|
||||
this->components.push_back(components);
|
||||
}
|
||||
|
||||
void CostPipeline::calculateFinalCost()
|
||||
{
|
||||
for (auto& component: this->components)
|
||||
{
|
||||
component->apply(this->communities);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user