OSB_LIB::NormNwAddress Class Reference

List of all members.

Detailed Description

Normalize network addresses.

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 Public Member Functions

Static Private Member Functions

Classes


Member Function Documentation

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.

Parameters:
addr The network address to normalize.
nw The network of the address.
neId The id of the address's network element.
Exceptions:
NpNotSupported if the numbering plan is not supported.
Returns:
true if the address could be normalized, else false.

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.

Parameters:
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.
Returns:
true if the address could be normalized, else false.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:15:46 2006 for OSB Library by  doxygen 1.4.7