OSB_LIB::ChargeSubscription Class Reference

List of all members.

Detailed Description

This functional class is reponsible to calculate the subscription fee for one contract and all personalized products of that contract. This is implemented in the call operator that is overloaded to take a contract and its balance sheet.

Restrictions:

Definition at line 259 of file subsfunc.h.

Public Member Functions

Private Member Functions


Constructor & Destructor Documentation

OSB_LIB::ChargeSubscription::ChargeSubscription (  )  [inline]

Charge subscriptions for one contract.

Definition at line 262 of file subsfunc.h.


Member Function Documentation

void OSB_LIB::ChargeSubscription::chargeProduct ( SubsCharges subsCharges,
const PersProduct persProduct,
const Date periodStart,
const Date periodEnd 
)

Charge subscriptions for one personalized prodct.

Parameters:
subsCharges Buffer for charges.
persProduct Product to charge.
periodStart Begin of charging period.
periodEnd End of charging period(not included).

SubsFuncBase* OSB_LIB::ChargeSubscription::getSubsFunc ( const Pricelist::Oid plId,
const Date refDate 
) [private]

Get the subscription function of a pricelist that is in effect at the reference date.

Parameters:
plId Pricelist to search.
refDate Reference date.

SubsFuncBase* OSB_LIB::ChargeSubscription::mkSubsFunc ( const SubsFuncCfg  ) 

Subscription function generator.

Exceptions:
OsbException in case of an invalid subscription function type.

void OSB_LIB::ChargeSubscription::operator() ( const Contract co,
SubsCharges subsCharges,
const Date periodStart,
const Date periodEnd 
)

Copy, destructor and assignment by compiler Charge subscription for one contract.

Parameters:
co Contract to charge.
subsCharges Subscription charges to use.
periodStart Begin of charging period.
periodEnd End of charging period (not included).


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