Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWMultiplicationExchange<T>


RWMultiplicationExchange<T> RWBilateralExchange RWExchangeImpl<T>

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

Synopsis

#include <rw/money/multexchange.h>
RWMultiplicationExchange<double> e("CAD","XEC", 1.747);

Related Java Class

com.roguewave.money.currency.v1_0.MultiplicationExchange

Description

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.

Public Static Data Member

const char* exchangeMethodName

Public Constructors

RWMultiplicationExchange<T>();
RWMultiplicationExchange<T>(const
        RWMultiplicationExchange<T>&);
RWMultiplicationExchange<T>(const RWCString& source,
                   const RWCString& target, double cFactor);
RWMultiplicationExchange<T>(const RWExchangeRate& r);

Public Member Operators

RWMultiplicationExchange<T>& 
operator=(const RWMultiplicationExchange<T>& m);

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.