OSB_LIB::SumCdr Class Reference

Inheritance diagram for OSB_LIB::SumCdr:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::SumCdr:

Collaboration graph
[legend]
List of all members.

Detailed Description

Summary call details record keeps a summary of call details records that is applicable to the same tariff version in mass rating. This is the abstract base class. All concreate summary call details records will be project specific and be implemented in derived classes.

Definition at line 71 of file sumcdr.h.

Public Types

Public Member Functions

Database operations
There exists no member function for the summary call detail record to read itself. A fetch function to read all summary call detail records belonging to a balance sheet page is provided by class SumCdrList.

Public Attributes

Protected Member Functions


Member Typedef Documentation

typedef Id<SumCdr> OSB_LIB::SumCdr::Oid

Typesave object identification and database link.

Definition at line 74 of file sumcdr.h.


Constructor & Destructor Documentation

OSB_LIB::SumCdr::SumCdr (  )  [inline]

Empty default constructor.

Definition at line 77 of file sumcdr.h.

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.

Note:
The argument cdr is currently not used.
The CDR and used service are not added to the list of CDRs.


Member Function Documentation

virtual void OSB_LIB::SumCdr::add ( Cdr cdr  )  [pure virtual]

Add a Cdr.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
cdr CDR to match (currently not used).
us Used service to match.
Returns:
True if the used service belongs to the summary CDR, else false.

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.

Parameters:
session Database session.
Returns:
True if success, false if the record to update does not exist.

Implemented in OSB_LIB::SumCdr01.


Member Data Documentation

ChargeDetails OSB_LIB::SumCdr::chargeDetails_

The new charges information of this SumCdr.

Definition at line 200 of file sumcdr.h.

Id2<TfVersion> OSB_LIB::SumCdr::flatTfId_

Flat tariff that has been applied to Cdrs in this SumCdr.

Definition at line 194 of file sumcdr.h.

Id2<TfVersion> OSB_LIB::SumCdr::massTfId_

Mass tariff applicable to this SumCdr.

Definition at line 197 of file sumcdr.h.

Oid OSB_LIB::SumCdr::oid_

Database link and unique id of a SumCdr.

Definition at line 188 of file sumcdr.h.

Id<BsPage> OSB_LIB::SumCdr::pageId_

Object id of the balance page that owns the SumCdr.

Definition at line 191 of file sumcdr.h.


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