OSB_LIB::SumCdr01Item Class Reference

Inheritance diagram for OSB_LIB::SumCdr01Item:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

SumCdr01 item.

A specific class that derived from OSB_LIB::UsageItemBase. This class is specific to handle SumCdr01.

Definition at line 810 of file invoice.h.

Public Member Functions


Constructor & Destructor Documentation

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

c'tor I.

Parameters:
section Section to use.

Definition at line 817 of file invoice.h.

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

c'tor II.

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

Definition at line 826 of file invoice.h.

OSB_LIB::SumCdr01Item::~SumCdr01Item (  ) 

Delete all the usage record detail. d'tor.

The d'tor will delete all the usage record detail. Below is the sample code:

         ~SumCdr01Item()
         {
             for (UsageDetailListI i=details.begin();
                 i != details.end(); ++i) {
                 delete *i;
             }
             details.clear();
         }


Member Function Documentation

SumCdr01Detail* OSB_LIB::SumCdr01Item::newSumCdr01Detail ( const Amount a,
const SumCdr01 cdr 
)

Create a new usage detail for a usage item.

Parameters:
a Subtotal amount to set.
cdr SumCdr01 to add.
Returns:
Pointer to a newly created SumCdr01Detail.

SumCdr01Detail* OSB_LIB::SumCdr01Item::newSumCdr01Detail ( const SumCdr01 cdr  ) 

Create a new usage detail for a usage item (without amount).

Parameters:
cdr SumCdr01 to add.
Returns:
Pointer to a newly created SumCdr01Detail.

virtual void OSB_LIB::SumCdr01Item::writeXml ( BillingXmlBase bXml  )  const [inline, virtual]

Function to call xml writer.

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

Implements OSB_LIB::UsageItemBase.

Definition at line 860 of file invoice.h.


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