RWDivisionGroup<T> RWExchangeGroupImpl<T>
Data Types | |
groupName |
Member Functions | ||
clone() create() |
getExchange() name() |
operator=() |
#include <rw/money/divexchggrp.h> RWDivisionGroup divGroup;
com.roguewave.money.currency.v1_0.DivisionGroup
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<T> 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<T>. 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<T>.
The division exchange group overrides the base class method:
RWExchange<T>
RWExchangeGroupImpl<T>::getExchange(const RWCString& source, const RWCString& target, const RWExchangeRateTable& rates);
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.
RWDivisionGroup<T>();
Default constructor. Constructs an empty group.
RWDivisionGroup<T>& operator=(const RWDivisionGroup<T>& group);
Assignment operator.
static const char* groupName;
Name associated with the group. Returned by the name() member function.
RWExchangeGroup<T> create();
Creates an RWExchangeGroup<T> object with an RWDivisionGroup<T> implementation.
RWExchangeGroupImpl<T>* clone() const;
Inherited from RWExchangeGroupImpl<T>.
RWExchange<T> getExchange(const RWCString& srcMnemonic, const RWCString& targetMnemonic, const RWExchangeRateTable& rates ) const;
Inherited from RWExchangeGroupImpl<T>. The description section describes how this class overrides this function.
RWCString name() const;
Inherited from RWExchangeGroupImpl<T>.
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.