OSB_LIB::UsageItemBase Class Reference

Inheritance diagram for OSB_LIB::UsageItemBase:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Usage Item base class.

Each derived class will deal with different type of Cdr. If there is a new type of Cdr, it will derived from this class.
One usage item represents one call and can contain several usage detail records.

Definition at line 647 of file invoice.h.

Public Types

Public Member Functions

Public Attributes

Private Member Functions


Member Typedef Documentation

typedef std::vector<UsageDetailBase*> OSB_LIB::UsageItemBase::UsageDetailList

Usage Details.

Definition at line 654 of file invoice.h.

typedef UsageDetailList::const_iterator OSB_LIB::UsageItemBase::UsageDetailListCI

Definition at line 655 of file invoice.h.

typedef UsageDetailList::iterator OSB_LIB::UsageItemBase::UsageDetailListI

Definition at line 656 of file invoice.h.


Constructor & Destructor Documentation

OSB_LIB::UsageItemBase::UsageItemBase ( const UsageItemBase rhs  )  [private]

Forbidden.

OSB_LIB::UsageItemBase::UsageItemBase ( const Section section  )  [inline]

c'tor I.

Parameters:
section Section to use.

Definition at line 663 of file invoice.h.

OSB_LIB::UsageItemBase::UsageItemBase ( const Section section,
const ChargeTraits ct 
) [inline]

c'tor II.

Parameters:
section Section to use.
ct Set initial subtotal amount.

Definition at line 671 of file invoice.h.

virtual OSB_LIB::UsageItemBase::~UsageItemBase (  )  [inline, virtual]

Delete all the usage record detail.

Definition at line 677 of file invoice.h.


Member Function Documentation

UsageItemBase& OSB_LIB::UsageItemBase::operator= ( const UsageItemBase rhs  )  [private]

Forbidden.

virtual void OSB_LIB::UsageItemBase::writeXml ( BillingXmlBase bXml  )  const [pure virtual]

Function to call xml writer.

Below is the sample implementation.

         virtual void CdrItem::writeXml(BillingXmlBase& bXml) const
         {
             dynamic_cast<BillingXml&>(bXml).writeCdrItem(*this);
         }

Implements OSB_LIB::InvoiceItem.

Implemented in OSB_LIB::UsagerecordItem, and OSB_LIB::SumCdr01Item.


Member Data Documentation

Subtotal OSB_LIB::UsageItemBase::amount

Sub total of a usage.

Definition at line 696 of file invoice.h.

UsageDetailList OSB_LIB::UsageItemBase::details

List of usage detail.

Definition at line 698 of file invoice.h.


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