The main purpose of this class is to define a unique interface for all tariff objects that have a configuration status and a release start and end timestamp.
Definition at line 170 of file tariffobject.h.
OSB_LIB::ToCfgPeriodBase::ToCfgPeriodBase | ( | CfgStatus | status = cfgEditable |
) | [explicit, protected] |
Default constructor with optional configuration status.
virtual OSB_LIB::ToCfgPeriodBase::~ToCfgPeriodBase | ( | ) | [protected, virtual] |
Empty virtual destructor.
bool OSB_LIB::ToCfgPeriodBase::contains | ( | const DateTime & | ts | ) | const |
Check if a timestamp is within the validity period.
const DateTime& OSB_LIB::ToCfgPeriodBase::endTs | ( | ) | const |
Timestamp when the tariff object expires.
ToCfgPeriodBase& OSB_LIB::ToCfgPeriodBase::operator= | ( | const ToCfgPeriodBase & | rhs | ) | [protected] |
Prevent assignment through base class.
virtual void OSB_LIB::ToCfgPeriodBase::setEndTs | ( | const DateTime & | ts | ) | [virtual] |
Set the expiration timestamp.
ts | Timestamp when the tariff object expires. |
OsbException | if endTs is:
|
DateTime OSB_LIB::ToCfgPeriodBase::endTs_ [protected] |