RWMultiplicationExchange<T> RWBilateralExchange RWExchangeImpl<T>
Data Types | |
exchangeMethodName |
Member Functions | |||
clone() exchange() |
name() operator=() |
setSource() setTarget() |
source() target() |
#include <rw/money/multexchange.h> RWMultiplicationExchange<double> e("CAD","XEC", 1.747);
com.roguewave.money.currency.v1_0.MultiplicationExchange
RWMultiplicationExchange<T> derives from the abstract base class RWBilateralExchange<T>. An RWMultiplicationExchange object converts a source currency to a target currency by multiplying the amount of the source currency by the associated conversion factor to obtain the target currency amount. This contrasts with RWDivisionExchange, which divides its source currency amount by the conversion factor to obtain the target amount.
const char* exchangeMethodName
This data member is the name returned by the name() function. It contains the name associated with this exchange class.
RWMultiplicationExchange<T>();
Default constructor. Source and target strings are set to null and the conversion factor is set to zero.
RWMultiplicationExchange<T>(const RWMultiplicationExchange<T>&);
Copy constructor.
RWMultiplicationExchange<T>(const RWCString& source, const RWCString& target, double cFactor);
Constructs an exchange object with source currency mnemonic source, target currency mnemonic target, and source to target conversion factor cFactor.
RWMultiplicationExchange<T>(const RWExchangeRate& r);
Constructs an exchange object with source, target, and conversion factor provided in the RWExchangeRate object r.
RWMultiplicationExchange<T>& operator=(const RWMultiplicationExchange<T>& m);
Assignment operator.
RWExchangeImple<T>* clone() const;
Inherited from RWExchangeImpl<T>.
RWMoney<T> exchange(const RWMoney<T>&)const;
Inherited from RWExchangeImpl<T>.
RWCString name() const;
Inherited from RWExchangeImpl<T>.
void setSource(const RWCString& src);
Inherited from RWExchangeImpl<T>.
void setTarget(const RWCString& src);
Inherited from RWExchangeImpl<T>.
RWCString source()const;
Inherited from RWExchangeImpl<T>.
RWCString target()const;
Inherited from RWExchangeImpl<T>.
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.