The class determines the connection point assigned to a CGI using a best match search.
Definition at line 459 of file cgi.h.
typedef std::map<std::string, Ci> OSB_LIB::CgiMap::Cis [private] |
typedef Id<ConnectionPt> OSB_LIB::CgiMap::CpId [private] |
typedef std::map<std::string, Lac> OSB_LIB::CgiMap::Lacs [private] |
typedef std::map<std::string, Mcc> OSB_LIB::CgiMap::Mccs [private] |
typedef std::map<std::string, Mnc> OSB_LIB::CgiMap::Mncs [private] |
OSB_LIB::CgiMap::CgiMap | ( | ) |
Default constructor.
The default constructor sets the flag `needBuild_' to true.
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.
tcat | Reference to the tariff catalogue. |
OsbException |
|
Id<ConnectionPt> OSB_LIB::CgiMap::map2Cp | ( | const std::string & | cgi, | |
const DateTime & | ts | |||
) | const |
void OSB_LIB::CgiMap::print | ( | std::ostream & | os, | |
std::string | spacer | |||
) | const |
Print for testing purposes.
friend class TariffCatalogue [friend] |
MappedCp OSB_LIB::CgiMap::catchall_ [private] |
Mccs OSB_LIB::CgiMap::mccs_ [private] |
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.