OSB_LIB::SumCdr01 Class Reference

Inheritance diagram for OSB_LIB::SumCdr01:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Summary call details record for SumCdr type 1.

Definition at line 208 of file sumcdr.h.

Public Member Functions

Public Attributes

Private Member Functions

Database operations

Static Private Attributes

Friends

Classes


Constructor & Destructor Documentation

OSB_LIB::SumCdr01::SumCdr01 (  )  [inline]

Default constructor to initalize POD members.

Definition at line 218 of file sumcdr.h.

OSB_LIB::SumCdr01::SumCdr01 ( const Id< BsPage > &  page,
const Cdr cdr,
const UsedService us 
)

Set balance page and grouping criteria for a Cdr and UsedService.

The CDR and used service are not added to the list of CDRs.


Member Function Documentation

void OSB_LIB::SumCdr01::add ( Cdr cdr  )  [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.

Implements OSB_LIB::SumCdr.

virtual void OSB_LIB::SumCdr01::insert ( const OSB_DB::Session session  )  [private, 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.

Implements OSB_LIB::SumCdr.

bool OSB_LIB::SumCdr01::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 from OSB_LIB::SumCdr.

UdrType OSB_LIB::SumCdr01::udrType (  )  const [virtual]

Telling what type of Udr it is.

Implements OSB_LIB::Udr.

virtual bool OSB_LIB::SumCdr01::update ( const OSB_DB::Session session  )  [private, 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.

Implements OSB_LIB::SumCdr.


Friends And Related Function Documentation

friend class SumCdr01Gw [friend]

Gateway need to populate SumCdr01's private members.

Definition at line 214 of file sumcdr.h.


Member Data Documentation

GroupingInfo OSB_LIB::SumCdr01::groupingInfo_

Grouping criteria for the PNG specification.

Definition at line 295 of file sumcdr.h.

long OSB_LIB::SumCdr01::numCdrs_

Total number of calls.

Definition at line 292 of file sumcdr.h.

const Udr::UdrType OSB_LIB::SumCdr01::type_ = Udr::sumcdr01 [static, private]

SumCdr01 has the type of sumcdr01.

Definition at line 211 of file sumcdr.h.


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