This class stores the details of a E.164 connection. The values in E.164 format is broken down into Country Code(CC), National Destination Code(NDC) and Subscriber Number(SN).
Definition at line 84 of file e164.h.
typedef Id<ConnectionPt> OSB_LIB::E164::CpId |
typedef Id<E164> OSB_LIB::E164::Oid |
Default constructor with optional object id.
const CpId& OSB_LIB::E164::cpId | ( | ) | const |
Get the unique conection point.
bool OSB_LIB::E164::freeze | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [private, virtual] |
Set the status from editable to standby.
In order to set the status from editable to standby, the following criteria must be fulfilled:
session | Database session to use. | |
errors | Container for error messages if any. |
Implements OSB_LIB::ToCfgBase.
bool OSB_LIB::E164::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a E164 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::E164::oid | ( | ) | const |
Get the unique E.164 id.
bool OSB_LIB::E164::read | ( | const OSB_DB::Session & | session | ) |
Read a E164 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::E164::release | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [private, virtual] |
Set the status from standby to release.
In order to set the status from standby to release, the following criteria must be fulfilled:
session | Database session to use. | |
errors | Container for error messages if any. |
Implements OSB_LIB::ToCfgBase.
bool OSB_LIB::E164::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove a E164 from database.
The function will ensure that the object is in status editable before proceeding. 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:
|
bool OSB_LIB::E164::revoke | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [private, virtual] |
Set the status from release to standby.
In order to set the status from release to standby, the following criteria must be fulfilled:
session | Database session to use. | |
errors | Container for error messages if any. |
Implements OSB_LIB::ToCfgBase.
void OSB_LIB::E164::setCpId | ( | const CpId & | cpId | ) |
Set connection point id of E164 connection.
cpId | Object id of the E164's connection point. |
OsbException | if:
|
void OSB_LIB::E164::setTon | ( | NwAddress::Ton | ton | ) |
Set type of number of E.164 connection.
ton | Type of number for the E164. |
OsbException | if:
|
void OSB_LIB::E164::setValue | ( | const std::string & | value | ) |
Set value of E.164 connection.
value | New value of E.164 connection. |
OsbException | if:
|
NwAddress::Ton OSB_LIB::E164::ton | ( | ) | const |
Get type of number of E.164 connection.
bool OSB_LIB::E164::unfreeze | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [private, virtual] |
Set the status from standby to editable.
In order to set the status from standby to editable, the following criteria must be fulfilled:
session | Database session to use. | |
errors | Container for error messages if any. |
Implements OSB_LIB::ToCfgBase.
bool OSB_LIB::E164::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a E164 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:
|
const std::string& OSB_LIB::E164::value | ( | ) | const |
Get value of E.164 connection.
friend class OSB_DB::E164Gw [friend] |
friend class TariffCatalogue [friend] |
const std::string OSB_LIB::E164::catchall_ [static] |
CpId OSB_LIB::E164::cpId_ [private] |
Oid OSB_LIB::E164::oid_ [private] |
NwAddress::Ton OSB_LIB::E164::ton_ [private] |
std::string OSB_LIB::E164::value_ [private] |