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

RWBilateralExchange<T>

Module:  Currency   Group:  Conversion


Does not inherit

Local Index

Members

Synopsis

#include <rw/currency/currexchange.h>
#include <rw/currency/divexchange.h>
#include <rw/currency/multexchange.h>

Description

RWBilateralExchange<T> is an abstract base class derived from the base class RWExchangeImpl<T>, and is a parent of both the RWMultiplicationExchange<T> and RWDivisionExchange<T> classes. RWBilateralExchange<T> implements the usual method of currency conversion: multiplying or dividing the amount of a source currency by a conversion factor to obtain the equivalent amount in the target currency.

Public Constructors

RWBilateralExchange();
RWBilateralExchange(const RWBilateralExchange<T>&);
RWBilateralExchange(const RWCString source, 
             const RWCString target, double f);
RWBilateralExchange(const RWExchangeRate& rate);

Public Member Operators

RWBilateralExchange<T>& 
operator=(const RWBilateralExchange<T>& b)

Public Member Functions

double 
conversionFactor() const;
RWExchangeRate 
exchangeRate() const;
void 
setConversionFactor(double factor);
void 
setExchangeRate(const RWExchangeRate& rate);


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.