OSB_LIB::StandardTax Class Reference

Inheritance diagram for OSB_LIB::StandardTax:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Compute tax as a percentage.

StandardTax implements the common percentage based tax rule, absolute taxes and combinations of these. In other words, it is a linear function of the taxable amount n:
t = p*n + a.

Definition at line 94 of file tax.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_LIB::StandardTax::StandardTax ( const TaxTraits tt,
const Decimal p,
const Decimal a 
) [inline]

Definition at line 96 of file tax.h.


Member Function Documentation

TaxAmount OSB_LIB::StandardTax::calculate ( const Money  )  const [virtual]

Implements OSB_LIB::Tax.

std::ostream& OSB_LIB::StandardTax::write ( std::ostream &   )  const [virtual]

Implements OSB_LIB::Tax.


Member Data Documentation

Decimal OSB_LIB::StandardTax::absolute_ [private]

Definition at line 106 of file tax.h.

Decimal OSB_LIB::StandardTax::percentage_ [private]

Definition at line 105 of file tax.h.


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