From efdea8904b9941fe0722826e258ff3ba8ce5d3f2 Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Tue, 2 Jul 2024 14:29:10 +0200 Subject: [PATCH] Add load and save --- .../antares/study/parts/short-term-storage/properties.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/antares/study/parts/short-term-storage/properties.cpp b/src/libs/antares/study/parts/short-term-storage/properties.cpp index 82ca18c738..33d32a7368 100644 --- a/src/libs/antares/study/parts/short-term-storage/properties.cpp +++ b/src/libs/antares/study/parts/short-term-storage/properties.cpp @@ -64,6 +64,11 @@ bool Properties::loadKey(const IniFile::Property* p) return p->value.to(this->injectionEfficiency); } + if (p->key == "efficiencyWithdrawal") + { + return p->value.to(this->withdrawalEfficiency); + } + if (p->key == "name") { return p->value.to(this->name); @@ -106,6 +111,7 @@ void Properties::save(IniFile& ini) const s->add("withdrawalnominalcapacity", this->withdrawalNominalCapacity); s->add("efficiency", this->injectionEfficiency); + s->add("efficiencyWithdrawal", this->withdrawalEfficiency); s->add("initialleveloptim", this->initialLevelOptim); s->add("enabled", this->enabled); }