Definition at line 71 of file sumcdr.h.
typedef Id<SumCdr> OSB_LIB::SumCdr::Oid |
OSB_LIB::SumCdr::SumCdr | ( | ) | [inline] |
OSB_LIB::SumCdr::SumCdr | ( | const Id< BsPage > & | page, | |
const Cdr & | cdr, | |||
const UsedService & | us | |||
) |
Set balance page and grouping criteria for a Cdr and UsedService.
virtual void OSB_LIB::SumCdr::add | ( | Cdr & | cdr | ) | [pure virtual] |
Add a Cdr.
cdr | CDR to add. The summary CDR removes all used services from cdr it accounts for, i.e., match its grouping criteria. |
Implemented in OSB_LIB::SumCdr01.
void OSB_LIB::SumCdr::addMoneyInfoList | ( | const MoneyInfoList & | usMoney, | |
MoneyInfoList & | sumMoney | |||
) | [protected] |
Combine two MoneyInfoList.
usMoney | The new MoneyInfoList to be added. | |
sumMoney | The target MoneyInfoList to be added to. |
void OSB_LIB::SumCdr::addUsedServiceToSumCdr | ( | const UsedService & | us | ) | [protected] |
Add a used service to a sum cdr.
us | Used service to be added. |
virtual void OSB_LIB::SumCdr::insert | ( | const OSB_DB::Session & | session | ) | [pure virtual] |
Insert a summary call details record into database.
This function should be implemented by all concrete derived classes to insert all relevant data members into their corresponding database tables.
This function should not write the CDRs to the filesystem. See class CdrIo for this.
Make use of helper functions provided by class OSB_DB::SumCdrGw to store base class data.
session | Database session. |
Implemented in OSB_LIB::SumCdr01.
virtual bool OSB_LIB::SumCdr::match | ( | const Cdr & | cdr, | |
const UsedService & | us | |||
) | const [virtual] |
Check if a used service matches the grouping criteria.
cdr | CDR to match (currently not used). | |
us | Used service to match. |
Reimplemented in OSB_LIB::SumCdr01.
virtual bool OSB_LIB::SumCdr::update | ( | const OSB_DB::Session & | session | ) | [pure virtual] |
Update a summary call details record in the database.
This function should be implemented by all concrete derived classes to update a summary call details record based on the grouping criteria. In addition, it has to determine and set the object id (required by the base class update functions).
This function should not update the filesystem. See class CdrIo for this.
Make use of helper functions provided by class OSB_DB::SumCdrGw to update base class data.
session | Database session. |
Implemented in OSB_LIB::SumCdr01.