This utility class is used to normalize network addresses.
Because of its dependencies from Network and CountryInfoList this functionality was isolated from NwAddress.
As of today all functions are static, however there is no reason to prevent the instatiation of the class (which allows a client to use shorter names).
Definition at line 74 of file normnwaddress.h.
| static void OSB_LIB::NormNwAddress::getCountry | ( | NwAddress & | addr | ) | [static] |
Determine the country of the address.
Wrapper to CountryInfoList::countryCode(), see there for details.
| static bool OSB_LIB::NormNwAddress::normalize | ( | NwAddress & | addr, | |
| const Network & | nw, | |||
| const Id2< NetworkElement > & | neId | |||
| ) | [static] |
Analyze the address and determine the country.
| addr | The network address to normalize. | |
| nw | The network of the address. | |
| neId | The id of the address's network element. |
| NpNotSupported | if the numbering plan is not supported. |
| static bool OSB_LIB::NormNwAddress::normalizeE164 | ( | NwAddress & | addr, | |
| const Network & | nw, | |||
| const Id2< NetworkElement > & | neId, | |||
| NwAddress::Ton | ton, | |||
| const std::string & | src | |||
| ) | [static, private] |
Analyze the E.164 number.
| addr | The network address to normalize. | |
| nw | The network of the address. | |
| neId | The id of the address's network element. | |
| ton | Type of number of src. | |
| src | The number to normalize. |
1.4.7