A rated party evaluator determines if its supported party should be rated for the network usage. See getParty() for details.
Intentionally it is not task of of RatedPartyEval class to check the usage type of the CDR, therefore there's no corresponding data member.
RpEvalType which defines symbolic constants for all supported types.
Definition at line 78 of file rpeval.h.
typedef Id<RatedPartyEval> OSB_LIB::RatedPartyEval::Oid |
Possible result for getParty().
noCdr | No CDR should be generated for the evaluated party. |
evalError | An error has occurred during the evaluation of the rated party. |
useRatedParty | Use the rated party as set by the evaluator. |
useCache | Use the resource cache to determine the tariff system based on RatedParty::resourceKey_. |
Constructor with object id and supported rated party type.
virtual OSB_LIB::RatedPartyEval::~RatedPartyEval | ( | ) | [virtual] |
Empty virtual destructor.
OSB_LIB::RatedPartyEval::RatedPartyEval | ( | const RatedPartyEval & | rhs | ) | [protected] |
Copying for derived classes only.
Result OSB_LIB::RatedPartyEval::evalParty | ( | const Cdr & | cdr, | |
RatedParty * | rp, | |||
OsbError * | error | |||
) | const |
Determine the rated party (if applicable).
cdr | CDR for which to determine the rated party. | |
rp | Rated party to populate. | |
error | Gets the error detected during the determination of the rated party. |
If the function returns useRatedParty:
If the function returns useCache:
virtual std::string OSB_LIB::RatedPartyEval::getParam | ( | int | index | ) | const [pure virtual] |
Get a configuration parameter of the evaluator.
index | Index of the parameter to retrieve, the index of the 1st parameter is 0. |
Implemented in OSB_LIB::RpeServedNwAddr, OSB_LIB::RpeServedImsi, OSB_LIB::RpEvalTrunk, and OSB_LIB::RpEvalFixedTs.
virtual Result OSB_LIB::RatedPartyEval::getParty | ( | const Cdr & | cdr, | |
RatedParty * | rp, | |||
OsbError * | error | |||
) | const [private, pure virtual] |
Determine the rated party (if applicable).
cdr | CDR for which to determine the rated party. | |
rp | Rated party to populate (see below). | |
error | Gets the error detected during the determination of the rated party. |
If the function returns useRatedParty:
If the function returns useCache:
Implemented in OSB_LIB::RpeServedNwAddr, OSB_LIB::RpeServedImsi, OSB_LIB::RpeInTrunk, OSB_LIB::RpeOutTrunk, and OSB_LIB::RpEvalFixedTs.
virtual int OSB_LIB::RatedPartyEval::numParam | ( | ) | const [pure virtual] |
Configuration of evaluator possible?
Implemented in OSB_LIB::RpeServedNwAddr, OSB_LIB::RpeServedImsi, OSB_LIB::RpEvalTrunk, and OSB_LIB::RpEvalFixedTs.
const RatedPartyEval::Oid & OSB_LIB::RatedPartyEval::oid | ( | ) | const [inline] |
RatedPartyEval& OSB_LIB::RatedPartyEval::operator= | ( | const RatedPartyEval & | rhs | ) | [protected] |
Assignment for derived classes only.
virtual bool OSB_LIB::RatedPartyEval::requiresCache | ( | ) | const [pure virtual] |
Resource cache needed for the evaluator?
Implemented in OSB_LIB::RpeServedNwAddr, OSB_LIB::RpeServedImsi, OSB_LIB::RpEvalTrunk, and OSB_LIB::RpEvalFixedTs.
RatedPartyEval::RpType OSB_LIB::RatedPartyEval::rpType | ( | ) | const [inline] |
virtual bool OSB_LIB::RatedPartyEval::setParam | ( | int | index, | |
const std::string & | param | |||
) | [private, pure virtual] |
Set a parameter for the evaluator.
index | Index of the parameter to set, the index of the 1st parameter is 0. | |
param | Value of the parameter as in the database. |
Implemented in OSB_LIB::RpeServedNwAddr, OSB_LIB::RpeServedImsi, OSB_LIB::RpEvalTrunk, and OSB_LIB::RpEvalFixedTs.
virtual Type OSB_LIB::RatedPartyEval::type | ( | ) | const [pure virtual] |
The type the rated party evaluator.
Implemented in OSB_LIB::RpeServedNwAddr, OSB_LIB::RpeServedImsi, OSB_LIB::RpeInTrunk, OSB_LIB::RpeOutTrunk, and OSB_LIB::RpEvalFixedTs.
friend class OSB_DB::RpEvalGw [friend] |
Oid OSB_LIB::RatedPartyEval::oid_ [private] |
RpType OSB_LIB::RatedPartyEval::rpType_ [private] |