Definition at line 704 of file tariffperiod.h.
typedef std::map<DayClass::Oid, SwitchTimes> OSB_LIB::TpsConfig::DcMap |
STL container for the configuration of all day classes.
Definition at line 709 of file tariffperiod.h.
typedef std::map<OSB_LIB::Time, TariffPeriod::Oid> OSB_LIB::TpsConfig::SwitchTimes |
void OSB_LIB::TpsConfig::add | ( | const DayClass::Oid & | dcId, | |
const OSB_LIB::Time & | switchTime, | |||
const TariffPeriod::Oid & | tpId | |||
) |
Add a configuration.
void OSB_LIB::TpsConfig::cleanup | ( | ) |
Clean-up the configuration.
Removes all switch times with the same tariff period as the previous switch time and erases empty day classes from dcMap_.
void OSB_LIB::TpsConfig::clear | ( | ) |
Clear the list.
const DcMap& OSB_LIB::TpsConfig::dcMap | ( | ) | const |
Read access to the whole configuration.
void OSB_LIB::TpsConfig::remove | ( | const DayClass::Oid & | dcId, | |
const OSB_LIB::Time & | switchTime | |||
) |
Remove a configuration.
dcId | Day class for which to remove switchTime. | |
switchTime | Switch-time to remove. |
DcMap OSB_LIB::TpsConfig::dcMap_ [private] |
The whole configuration.
Definition at line 748 of file tariffperiod.h.