OSB_LIB::CgiMap Class Reference

Collaboration diagram for OSB_LIB::CgiMap:

Collaboration graph
[legend]
List of all members.

Detailed Description

Support efficient mapping CGI -> connection point.

The class determines the connection point assigned to a CGI using a best match search.

Remarks:
Copy constructor, assignment and destructor by compiler.

Definition at line 459 of file cgi.h.

Public Member Functions

Private Types

Private Member Functions

Private Attributes

Friends

Internal structures:

Classes


Member Typedef Documentation

typedef std::map<std::string, Ci> OSB_LIB::CgiMap::Cis [private]

Internal: Map CI - Ci.

Definition at line 535 of file cgi.h.

typedef Id<ConnectionPt> OSB_LIB::CgiMap::CpId [private]

Shorthand for a connection point object id.

Definition at line 518 of file cgi.h.

typedef std::map<std::string, Lac> OSB_LIB::CgiMap::Lacs [private]

Internal: Map LAC - Lac.

Definition at line 568 of file cgi.h.

typedef std::map<std::string, Mcc> OSB_LIB::CgiMap::Mccs [private]

Internal: Map MCC - Mcc.

Definition at line 634 of file cgi.h.

typedef std::map<std::string, Mnc> OSB_LIB::CgiMap::Mncs [private]

Internal: Map MNC - Mnc.

Definition at line 601 of file cgi.h.


Constructor & Destructor Documentation

OSB_LIB::CgiMap::CgiMap (  ) 

Default constructor.

The default constructor sets the flag `needBuild_' to true.


Member Function Documentation

void OSB_LIB::CgiMap::add ( const Cgi cgi,
const ConnectionPt cp 
) [private]

Add a CGI to the map.

void OSB_LIB::CgiMap::build ( const TariffCatalogue tcat  ) 

Build the map.

Add all CGI as contained in the tariff catlogue's list to the internal structure(s). Cgi's are added only if they have a connection point assigned and their value is not empty.

Parameters:
tcat Reference to the tariff catalogue.
Exceptions:
OsbException 
  • Connection point assigned to a CGI can not be found in the tariff catalogue.

Id<ConnectionPt> OSB_LIB::CgiMap::map2Cp ( const std::string &  cgi,
const DateTime ts 
) const

Map a Cgi.

Parameters:
cgi Value of Cgi to map.
ts Date and time of the mapping.

void OSB_LIB::CgiMap::print ( std::ostream &  os,
std::string  spacer 
) const

Print for testing purposes.


Friends And Related Function Documentation

friend struct Ci [friend]

Definition at line 474 of file cgi.h.

friend struct Lac [friend]

Definition at line 476 of file cgi.h.

friend struct Mcc [friend]

Definition at line 478 of file cgi.h.

friend struct Mnc [friend]

Definition at line 477 of file cgi.h.

friend class TariffCatalogue [friend]

Provide access to `needBuild_' for the tariff catalogue.

Whenever a configuration related to Cgi changes, the tariff catalogue must be able to set the (re)build flag.

Definition at line 467 of file cgi.h.


Member Data Documentation

MappedCp OSB_LIB::CgiMap::catchall_ [private]

Catch-all CGI.

Definition at line 638 of file cgi.h.

Mccs OSB_LIB::CgiMap::mccs_ [private]

Map of MCCs.

Definition at line 637 of file cgi.h.

bool OSB_LIB::CgiMap::needBuild_ [private]

Flag if the map need to be build.

This flag is set to true in the default constructor and cleared on successful completion of build.

The tariff catalogue sets this flag whenever an E164 configuration changes. Before giving read-only access to the map, the tariff catalogue checks the flag and ev. rebuilds the map.

Definition at line 650 of file cgi.h.


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