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

RWDivisionExchange<T>

Module:  Currency   Group:  Conversion


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

Local Index

Members

Synopsis

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

Description

RWDivisionExchange<T> derives from the abstract base class RWBilateralExchange<T>. An RWDivisionExchange<T> 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<T>, which multiplies its source currency by the conversion factor to obtain the target amount.

Public Static Data Member

const char* exchangeMethodName;

Public Constructors

RWDivisionExchange();
RWDivisionExchange(const RWDivisionExchange<T>&);
RWDivisionExchange(const RWCString source,
                   const RWCString target, double cfactor);
RWDivisionExchange(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 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.