A specific class that derived from UsageItemBase. This class is specific to handle Usagerecord.
Definition at line 741 of file invoice.h.
OSB_LIB::UsagerecordItem::UsagerecordItem | ( | const Section & | section | ) | [inline] |
OSB_LIB::UsagerecordItem::UsagerecordItem | ( | const Section & | section, | |
const ChargeTraits & | ct | |||
) | [inline] |
OSB_LIB::UsagerecordItem::~UsagerecordItem | ( | ) |
Destructor: Deletes all the usage record detail.
UsagerecordDetail* OSB_LIB::UsagerecordItem::newUsagerecordDetail | ( | const Amount & | a, | |
const Usagerecord * | ur | |||
) |
Create a new usage detail for a usage item.
a | Subtotal amount to set. | |
ur | Usagerecord to add. |
UsagerecordDetail* OSB_LIB::UsagerecordItem::newUsagerecordDetail | ( | const Usagerecord * | ur | ) |
Create a new usage detail for a usage item (without amount).
ur | Usagerecord to add. |
virtual void OSB_LIB::UsagerecordItem::writeXml | ( | BillingXmlBase & | bXml | ) | const [inline, virtual] |
Function to call xml writer.
virtual void writeXml(BillingXmlBase& bXml) const { dynamic_cast<BillingXml&>(bXml).writeUsagerecordItem(*this); }
Implements OSB_LIB::UsageItemBase.