The format of the resourceNumber_ is CC-NDC-SN with:
+ CC: country code
+ NDC: national destination code (if applicable)
+ SN: subsbriber number.
Definition at line 64 of file e164resource.h.
Constructor with optional object id.
Constructor with resource number and network.
rn | The resource number, see class description for format. | |
nw | The network of the E.164 resource. |
OsbException | if rn is not valid, see numberValid. | |
OsbException | if rn is empty or too long. |
OSB_LIB::E164Resource::E164Resource | ( | const Number & | rn, | |
const Id2< NetworkElement > & | ne | |||
) |
Constructor with resource number and network element.
rn | The resource number, see class description for format. | |
ne | The network element of the E.164 resource. |
OsbException | if rn is not valid, see numberValid. | |
OsbException | if rn is empty or too long. |
bool OSB_LIB::E164Resource::insert | ( | const OSB_DB::Session & | session | ) | [virtual] |
Insert the resource into the database.
session | Database session to use. |
Implements OSB_LIB::Resource.
bool OSB_LIB::E164Resource::numberValid | ( | ) | const |
Validate the resource number.
static bool OSB_LIB::E164Resource::numberValid | ( | const std::string & | number | ) | [static] |
Validate the number of a E.164 resource.
number | Number to validate. |
std::string OSB_LIB::E164Resource::phoneNumber | ( | ) | const |
Usual format of a E.164 phone number.
Returns the resource number in the commonly used format NAC-NDC-SN with:
+ NAC: national access code
+ NDC: national destination code (if applicable)
+ SN: subsbriber number
or
resourceNumber_ if NAC or NDC is not available, which is the case if the network and element are not set or their address information is not available.
bool OSB_LIB::E164Resource::read | ( | const OSB_DB::Session & | session | ) | [virtual] |
Read the resource from the database.
session | Database session to use. |
Implements OSB_LIB::Resource.
bool OSB_LIB::E164Resource::remove | ( | const OSB_DB::Session & | session | ) | [virtual] |
Delete the resource from the database.
session | Database session to use. |
Implements OSB_LIB::Resource.
Type OSB_LIB::E164Resource::typeId | ( | ) | const [virtual] |
void OSB_LIB::E164Resource::updData | ( | const OSB_DB::Session & | session | ) | [virtual] |
Update the E.164 resource in the database.
No updates that are specific for a E.164 resource exists,
the function just calls updDataBase().
session | Database session to use. |
Implements OSB_LIB::Resource.
const Type OSB_LIB::E164Resource::type_ = rtE164 [static] |