OSB_LIB::InvoiceItem Class Reference

Inheritance diagram for OSB_LIB::InvoiceItem:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

InvoiceItem.

The invoice stores all invoice items and amounts. It is the master of all these items.

Definition at line 117 of file invoice.h.

Public Member Functions

Protected Attributes

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

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

Forbidden copy contructor.

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

c'tor.

Parameters:
section Section of an invoice item.

Definition at line 128 of file invoice.h.

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

d'tor.

Definition at line 131 of file invoice.h.


Member Function Documentation

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

Forbidden copy contructor.

const Section& OSB_LIB::InvoiceItem::section (  )  [inline]

Function to get invoice item's section.

Returns:
Invoice item section.

Definition at line 164 of file invoice.h.

References section_.

void OSB_LIB::InvoiceItem::setNumber ( int  n  )  [inline]

Function to set a number to an invoice item.

Parameters:
n number to set.

Definition at line 158 of file invoice.h.

References number_.

Referenced by OSB_LIB::Invoice::setNumber().

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

Function to call the appropriate xml writer for each specific invoice item.

This function is call by BillingXmlBase::writeInvoice when it browses through all invoice item and call billingXml funtion for each of them.

Below is the sample code on how each invoice item writeXml call it's xml writer function.

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

Parameters:
bXml Xml writer to use.

Implemented in OSB_LIB::UsageItemBase, OSB_LIB::UsagerecordItem, OSB_LIB::SumCdr01Item, OSB_LIB::SubsItem, OSB_LIB::OnetimeChargeItem, OSB_LIB::TotalItem, OSB_LIB::AssociateInfo, OSB_LIB::SummaryChargesInfo, and OSB_LIB::InvoiceInfoItem.


Member Data Documentation

int OSB_LIB::InvoiceItem::number_ [private]

Reproducible number (in the order in which invoice items are created).

Definition at line 174 of file invoice.h.

Referenced by setNumber().

Section OSB_LIB::InvoiceItem::section_ [protected]

Invoice section according to which invoice items are written.

Definition at line 169 of file invoice.h.

Referenced by section().


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