Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWEuroGroup<T>


RWEuroGroup<T> RWExchangeGroupImpl<T>

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

Synopsis

#include <rw/money/euroexchggrp.h>
#include <rw/tvslist.h>
RWTValSlist<RWCString> euroCurrencies;
RWEuroGroup<double> euroGroup(euroCurrencies);

Related Java Class

com.roguewave.money.currency.v1_0.EuroGroup

Description

Currency exchange groups are collections of currencies that have a common distinguishing characteristic when it comes to converting money from one currency to money of another currency. RWEuroGroup<T> is a currency exchange group class that consists of all currencies replaced by the Euro. RWEuroGroup objects create and return RWExchange objects with the RWTriangularExchange<T> implementation.


NOTE:The Euro itself is not in the Euro exchange group because the triangular exchange algorithm is not used when converting to or from Euros.

Static Data Members

const char* groupName;

Public Constructors

RWEuroGroup<T>(const char* euroMnemonic="EUR");
RWEuroGroup<T>(const RWEuroGroup<T>& e);
RWEuroGroup<T>(const RWTValSlist<RWCString>
               euroCurrencies,const char* euroMnemonic="EUR");

Public Member Operators

RWEuroGroup<T>& 
operator=(const RWEuroGroup<T>& e);

Static Public Member Functions

RWExchangeGroup<T> 
create();
RWExchangeGroup<T>
create(const RWTValSlist<RWCString>& currencyList, 
       const char* euroMnemonic);
RWExchangeGroup<T> 
create(istream& strm, const char* euroMnemonic);

Public Member Functions

RWBoolean 
addCurrency(const RWCString& currencyMnemonic);
void
clear();
RWExchangeGroupImpl<T>* 
clone() const;
RWBoolean 
containsCurrency(const RWCString& currencyMnemonic);
RWCString
euroMnemonic() const
RWTValSlist<RWCString>
getCurrencies() const;
RWExchange<T> 
getExchange(const RWCString& srcMnemonic,
            const RWCString& tragetMnemonic, 
            const RWExchangeRateTable& rates ) const;
RWCString 
name() const;
size_t
numCurrencies() const;
RWBoolean 
removeCurrency(const RWCString& currencyMnemonic);
void
setCurrencies(const RWTValSlist<RWCString>& l);
void
setEuroMnemonic(const RWCString& mnemonic);

Related Global Operators

ostream& 
operator<<(ostream& strm, const RWEuroGroup<T>& grp);
istream& 
operator>>(istream& strm, RWEuroGroup<T>& grp);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.