Module: Currency Group: Conversion
Does not inherit
#include<rw/currency/exchggroup.h>
RWExchangeGroupImpl is an abstract base class from which all exchange group implementation classes must derive. Class RWExchangeGroup<T> is the handle class, which forwards all conversion requests to its associated implementation class.
RWExchangeGroupImpl();
Default constructor.
virtual RWExchngeGroupImpl<T>* clone() const = 0;
Returns a copy of self allocated off the heap.
virtual RWExchange<T> getExchange(const RWCString& sourceMnemonic const RWCString& targetMnemnoic const RWExchangeRateTable& rates)=0;
Creates and returns a currency exchange object for converting money in the source currency to money in the target currency using the exchange rates table rates. If the parameters are invalid, the Rogue Wave classes that derive from this class return an invalid exchange object.
virtual RWCString name() const = 0;
Returns a name to be associated with the group.
© 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.