RWDivisionExchange<T> RWBilateralExchange<T> RWExchangeImpl<T>
Data Types | |
exchangeMethodName |
Member Functions | |||
clone() exchange() |
name() setSource() |
setTarget() source() |
target() |
#include<rw/money/divexchange.h> RWDivisionExchange<double> e("CAD","XEC", 0.57241)
com.roguewave.money.currency.v1_0.DivisionExchange
RWDivisionExchange<T> derives from the abstract base class RWBilateralExchange<T>. An RWDivisionExchange object converts a source currency to a target currency by dividing the amount of the source currency by the associated conversion factor to obtain the target currency. This contrasts with RWMultiplicationExchange, which multiplies its source currency 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.
RWDivisionExchange<T>();
Default constructor. Sets source and target strings to null and the conversion factor to zero.
RWDivisionExchange<T>(const RWDivisionExchange<T>&);
Copy constructor.
RWDivisionExchange<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.
RWDivisionExchange<T>(const RWExchangeRate& r);
Constructs an exchange object with source, target, and conversion factor provided in the RWExchangeRate object r.
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.