A collection of currency objects that convert a source currency to a target currency by dividing the amount of the source currency by a conversion factor.
More...
template<class T>
class RWDivisionGroup< T >
Currency exchange groups are collections of currencies that have a common distinguishing characteristic for converting money from one currency to money of another currency. RWDivisionGroup is made up of objects that convert a source currency to a target currency by dividing the amount of the source currency by a conversion factor.
- Note
- Currencies that use the triangular conversion method required by the European Monetary Union are available in class RWEuroGroup. Currencies that convert a source currency to a target currency by multiplying the amount of the source by a conversion factor are available in RWMultiplicationGroup.
The division exchange group overrides the base class method:
so that it looks in exchange rate table rates
for an exchange rate that converts the target
currency to the source
currency. If it finds one, it creates and returns an RWExchange object with an RWDivisionExchange implementation. If it does not find one, it returns an invalid RWExchange object.
- Synopsis
#include <rw/currency/divexchggrp.h>