Skip to content

Commit

Permalink
Add load and save
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jul 2, 2024
1 parent b3de8de commit efdea89
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ bool Properties::loadKey(const IniFile::Property* p)
return p->value.to<double>(this->injectionEfficiency);
}

if (p->key == "efficiencyWithdrawal")
{
return p->value.to<double>(this->withdrawalEfficiency);
}

if (p->key == "name")
{
return p->value.to<std::string>(this->name);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit efdea89

Please sign in to comment.