Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

2.4 Conversion Classes

Money.h++ uses currency exchange objects to convert money of one currency into money of another currency. These objects encapsulate the source and target currency mnemonics, the conversion factors and the exchange algorithm needed for a conversion. Three conversion methods are provided:

In addition to currency exchange objects, Money.h++ provides currency exchange groups. A currency exchange group creates an exchange object when it is presented with a source currency, a target currency and an exchange rate table. The exchange objects associated with a particular exchange group have a common distinguishing characteristics. For example, RWEuroGroup provides exchange objects for of all the currencies that are scheduled to be replaced by the Euro. Similarly, RWMultiplicationGroup and RWDivisionGroup provide of currencies that implement the conversion by multiplication and conversion by division, respectively. Java versions of these classes include:


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.