OSB_LIB::NumberAnalyzer01 Class Reference

Inheritance diagram for OSB_LIB::NumberAnalyzer01:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::NumberAnalyzer01:

Collaboration graph
[legend]
List of all members.

Detailed Description

NumberAnalyzer01 is a concreate class that defines the functionalities needed to analyze and modify the phone numbers in Cdr (called and calling numbers).

Definition at line 61 of file numberanalyzer01.h.

Public Types

Public Member Functions

Member functions to analyze a number:
Read access to data members:
Set the data members:

Private Member Functions

Internal functions for manipulating numbers:
Derieved class specific database operations:

Private Attributes

Friends


Member Typedef Documentation

typedef OSB_LIB::NwAddress::Ton OSB_LIB::NumberAnalyzer01::Ton

Declare Ton as a short name for OSB_LIB::NwAddress::Ton.

Definition at line 66 of file numberanalyzer01.h.


Constructor & Destructor Documentation

OSB_LIB::NumberAnalyzer01::NumberAnalyzer01 ( const Oid oid = Oid()  ) 

Constructor for creating a new number analyzer 01 or an existing number analyzer.


Member Function Documentation

void OSB_LIB::NumberAnalyzer01::addPrefix ( NwAddress nwAddress  )  const [private]

Add prefix from the original number.

This function will add the prefix to NwAddress::original_. It will write the processed number in NwAddress::analyzed_ and set the NwAddress::analyzedTon_ accordingly.

const std::string& OSB_LIB::NumberAnalyzer01::addPrefix (  )  const

Prefix to be added.

All numbers passed into this number analyzer will be added with the specified prefix.

Returns:
The prefix that will be added. Empty string will be returned if no prefixes need to be added.

virtual bool OSB_LIB::NumberAnalyzer01::analyzeCalled ( NwAddress nwAddress  )  const [virtual]

Analyze the called number.

The analysis will be carried out on the NwAddress::original_. Result of the analysis will be written to NwAddress::analyzed_. The TON of the resulting analyzed number will be written to NwAddress::analyzedTon_.

Returns:
true if further analysis on the called number is needed.

Implements OSB_LIB::NumberAnalyzer.

virtual bool OSB_LIB::NumberAnalyzer01::analyzeCalling ( NwAddress nwAddress  )  const [virtual]

Analyze the calling number.

The analysis will be carried out on the NwAddress::original_. Result of the analysis will be written to NwAddress::analyzed_. The TON of the resulting analyzed number will be written to NwAddress::analyzedTon_.

Returns:
true if further analysis on the calling number is needed.

Implements OSB_LIB::NumberAnalyzer.

virtual NumberAnalyzer* OSB_LIB::NumberAnalyzer01::clone_ (  )  const [private, virtual]

Documentation from base class.

Implements OSB_LIB::NumberAnalyzer.

virtual void OSB_LIB::NumberAnalyzer01::insSpecific ( const OSB_DB::Session session  )  [private, virtual]

Insert derieve class specific data into database.

Parameters:
session Database session used.

Implements OSB_LIB::NumberAnalyzer.

virtual bool OSB_LIB::NumberAnalyzer01::readSpecific ( const OSB_DB::Session session  )  [private, virtual]

Populate the derieved class data members.

Parameters:
session Database session used.
Returns:
true if operation completed successfully. It return false if the object id is not found in database.

Implements OSB_LIB::NumberAnalyzer.

virtual void OSB_LIB::NumberAnalyzer01::removeSpecific ( const OSB_DB::Session session  )  [private, virtual]

Delete derieve class specific data from database.

Parameters:
session Database session used.

Implements OSB_LIB::NumberAnalyzer.

void OSB_LIB::NumberAnalyzer01::rmPrefix ( NwAddress nwAddress  )  const [private]

Remove prefix from the original number.

This function will remove the prefix from NwAddress::original_. It will write the processed number in NwAddress::analyzed_ and set the NwAddress::analyzedTon_ accordingly.

const std::string& OSB_LIB::NumberAnalyzer01::rmPrefix (  )  const

Prefix to be removed.

If the number passed in starts with the prefix specified, the prefix will be removed.

Returns:
The prefix that will be removed. Empty string will be returned if no prefixes need to be removed.

void OSB_LIB::NumberAnalyzer01::setAddPrefix ( const std::string &  addPrefix  ) 

Set the prefix to be added.

Parameters:
addPrefix Prefix to be added.

void OSB_LIB::NumberAnalyzer01::setRmPrefix ( const std::string &  rmPrefix  ) 

Set the prefix to be removed.

Parameters:
rmPrefix Prefix to be removed.

void OSB_LIB::NumberAnalyzer01::setTon ( const NwAddress::Ton ton  ) 

Set the TON after the number analysis.

Parameters:
ton TON after the number analysis.

const NwAddress::Ton& OSB_LIB::NumberAnalyzer01::ton (  )  const

Type of number after the number analysis.

Returns:
The type of number after the adding or removing of the prefixes.

virtual void OSB_LIB::NumberAnalyzer01::updSpecific ( const OSB_DB::Session session  )  [private, virtual]

Update derieved class specific data in database.

Parameters:
session Database session used.

Implements OSB_LIB::NumberAnalyzer.


Friends And Related Function Documentation

friend class OSB_DB::NumberAnalyzer01Gw [friend]

Allow gateway to access private members.

Definition at line 63 of file numberanalyzer01.h.


Member Data Documentation

std::string OSB_LIB::NumberAnalyzer01::addPrefix_ [private]

Prefix to be added.

Definition at line 215 of file numberanalyzer01.h.

std::string OSB_LIB::NumberAnalyzer01::rmPrefix_ [private]

Prefix to be removed.

Definition at line 212 of file numberanalyzer01.h.

NwAddress::Ton OSB_LIB::NumberAnalyzer01::ton_ [private]

Resulting TON after analyzing.

Definition at line 218 of file numberanalyzer01.h.


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