OSB_LIB::Tax Class Reference

Inheritance diagram for OSB_LIB::Tax:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract base for all tax rules.

Tax is an abstract base class that contains a TaxTraits and defines the interface common to all tax rules.

ToDo: Add interface for clients to inquire about parameters for calculation of net amounts when we're dealing with a gross amt.

Definition at line 64 of file tax.h.

Public Member Functions

Public Attributes

Protected Attributes


Constructor & Destructor Documentation

OSB_LIB::Tax::Tax ( const TaxTraits tt  )  [inline]

Definition at line 66 of file tax.h.

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

Definition at line 67 of file tax.h.


Member Function Documentation

virtual TaxAmount OSB_LIB::Tax::calculate ( const Money  )  const [pure virtual]

Implemented in OSB_LIB::StandardTax.

TaxIdVs OSB_LIB::Tax::oid (  )  const [inline]

Definition at line 70 of file tax.h.

References OSB_LIB::TaxTraits::taxIdVs(), and traits_.

const TaxTraits& OSB_LIB::Tax::traits (  )  const [inline]

Definition at line 71 of file tax.h.

References traits_.

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

Implemented in OSB_LIB::StandardTax.

Referenced by OSB_LIB::operator<<().


Member Data Documentation

std::string OSB_LIB::Tax::name

Definition at line 73 of file tax.h.

ParaValue OSB_LIB::Tax::paraValue

Definition at line 76 of file tax.h.

TaxTraits OSB_LIB::Tax::traits_ [protected]

Accounting info.

Definition at line 80 of file tax.h.

Referenced by oid(), and traits().


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