

The class stores the information about a tariff period and provide the functionality to access and modify the tariff period attributes and configurations.
Definition at line 500 of file tariffperiod.h.
| typedef Id<TariffPeriod> OSB_LIB::TariffPeriod::Oid |
Default constructor with optional object id.
| std::string OSB_LIB::TariffPeriod::color | ( | ) | const [inline] |
| bool OSB_LIB::TariffPeriod::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a tariff period into database.
A new object is inserted. All attributes of the object has been set except object id. The object id will only be set by the function if the insertion is successful.
| session | Database session. |
| OsbException | for the following errors:
|
| const Oid& OSB_LIB::TariffPeriod::oid | ( | ) | const |
Get object id.
| bool OSB_LIB::TariffPeriod::read | ( | const OSB_DB::Session & | session | ) |
Read a tariff period from database.
The object id is used to gather other info from database and then populate all the object's data members.
| session | Database session. |
| bool OSB_LIB::TariffPeriod::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove a tariff period from database.
After the function call, oid of this object will be unset to indicate that there is no such entry anymore in the database.
| session | Database session. |
| OsbException | for the following errors:
|
| void OSB_LIB::TariffPeriod::setColor | ( | const std::string & | color | ) |
Set the color.
| color | New color. |
| bool OSB_LIB::TariffPeriod::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a tariff period in the database.
Old entry in the database indentify by the object id will be replaced with the new data from the passed in, upated object.
| session | Database session used. |
| OsbException | for the following erros:
|
friend struct OSB_DB::TariffPeriodGw [friend] |
friend class TariffCatalogue [friend] |
Tariff Catalogue is the only object that is allow to invoke the private functions of this class.
Definition at line 508 of file tariffperiod.h.
std::string OSB_LIB::TariffPeriod::color_ [private] |
GUI color of the tariff period, format: #RRGGBB.
Definition at line 593 of file tariffperiod.h.
Referenced by color().
Oid OSB_LIB::TariffPeriod::oid_ [private] |
1.4.7