Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWDivisionExchange<T>


RWDivisionExchange<T> RWBilateralExchange<T> RWExchangeImpl<T>

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include<rw/money/divexchange.h>
RWDivisionExchange<double> e("CAD","XEC", 0.57241)

Related Java Class

com.roguewave.money.currency.v1_0.DivisionExchange

Description

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.

Public Static Data Member

const char* exchangeMethodName;

Public Constructors

RWDivisionExchange<T>();
RWDivisionExchange<T>(const RWDivisionExchange<T>&);
RWDivisionExchange<T>(const RWCString source,
                      const RWCString target, double cfactor);
RWDivisionExchange<T>(const RWExchangeRate& r);

Public Member Functions

RWExchangeImple<T>*
clone() const;
RWMoney<T>
exchange(const RWMoney<T>&)const;
RWCString
name() const;
void
setSource(const RWCString& src);
void
setTarget(const RWCString& src);
RWCString
source()const;
RWCString
target()const;


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.