Member Functions | ||
conversionFactor() exchangeRate() |
operator=() setConversionFactor() |
setExchangeRate() |
#include <rw/money/currexchange.h> #include <rw/money/divexchange.h> #include <rw/money/multexchange.h>
com.roguewave.money.currency.v1_0.BilateralExchange
RWBilateralExchange<T> is an abstract base class derived from the base class RWExchangeImpl<T>, and is a parent of both the RWMultiplicationExchange and RWDivisionExchange classes. RWBilateralExchange<T> implements the usual method of currency conversion: multiplying or dividing the amount of a source currency by a conversion factor to obtain the equivalent amount in the target currency.
RWBilateralExchange<T>();
Default constructor. The source and target mnemonic strings are set to null, and the conversion factor is set to zero.
RWBilateralExchange<T>(const RWBilateralExchange<T>&);
Copy constructor.
RWBilateralExchange<T>(const RWCString source, const RWCString target, double f);
Constructs a bilateral exchange object with source currency mnemonic given by source, target currency mnemonic given by target, and source to target conversion factor given by f.
RWBilateralExchange<T>(const RWExchangeRate& rate);
Constructs a bilateral exchange object with source currency, target currency and conversion factor provided by the RWExchangeRate object rate.
RWBilateralExchange<T>& operator=(const RWBilateralExchange<T>& b)
Assignment operator.
double conversionFactor() const;
Returns the conversion factor.
RWExchangeRate exchangeRate() const;
Returns the source currency, target currency and conversion factor in an RWExchangeRate object.
void setConversionFactor(double factor);
Sets the conversion factor.
void setExchangeRate(const RWExchangeRate& rate);
Sets the source currency, target currency and conversion factor to those contained in rate.
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.