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

RWDivisionGroup<T>

Module:  Currency   Group:  Conversion


RWDivisionGroup<T> RWExchangeGroupImpl<T>

Local Index

Members

Synopsis

#include <rw/currency/divexchggrp.h>
RWDivisionGroup divGroup;

Description

Currency exchange groups are collections of currencies that have a common distinguishing characteristic for converting money from one currency to money of another currency. RWDivisionGroup<T> is made up of objects that convert a source currency to a target currency by dividing the amount of the source currency by a conversion factor.


NOTE -- Currencies that use the triangular conversion method required by the European Monetary Union are available in class RWEuroGroup<T>. Currencies that convert a source currency to a target currency by multiplying the amount of the source by a conversion factor are available in RWMultiplicationGroup<T>.

The division exchange group overrides the base class method:

so that it looks in exchange rate table rates for an exchange rate that converts the target currency to the source currency. If it finds one, it creates and returns an RWExchange object with an RWDivisionExchange<T> implementation. If it does not find one, it returns an invalid RWExchange object.

Public Constructors

RWDivisionGroup();

Public Member Operators

RWDivisionGroup<T>& 
operator=(const RWDivisionGroup<T>& group);

Public Static Data Member

static const char* groupName;

Static Member Functions

RWExchangeGroup<T> 
create();

Public Member Functions

RWExchangeGroupImpl<T>* 
clone() const;
RWExchange<T> 
getExchange(const RWCString& srcMnemonic, 
            const RWCString& targetMnemonic,
            const RWExchangeRateTable& rates ) const;
RWCString 
name() 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.