Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Currency Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWMultiplicationExchange<T>

Module:  Currency   Group:  Conversion


RWMultiplicationExchange<T>RWBilateralExchangeRWExchangeImpl<T>

Local Index

Members

Synopsis

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

Description

RWMultiplicationExchange<T> derives from the abstract base class RWBilateralExchange<T>. An RWMultiplicationExchange<T> 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<T>, 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();
RWMultiplicationExchange(const
        RWMultiplicationExchange<T>&);
RWMultiplicationExchange(const RWCString& source,
                   const RWCString& target, double cFactor);
RWMultiplicationExchange(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 DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.