SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Abstract base class from which all exchange group implementation classes must derive. Implements the handle-body pattern in which RWExchangeGroup<T> is the handle. More...
#include <rw/currency/exchggroup.h>
Public Member Functions | |
RWExchangeGroupImpl () | |
virtual RWExchange< T > | getExchange (const RWCString &srcMnemonic, const RWCString &tragetMnemonic, const RWExchangeRateTable &rates) const =0 |
virtual RWCString | name () const =0 |
virtual RWExchangeGroupImpl< T > * | clone () const =0 |
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.
#include<rw/currency/exchggroup.h>
RWExchangeGroupImpl< T >::RWExchangeGroupImpl | ( | ) | [inline] |
Default constructor.
virtual RWExchangeGroupImpl<T>* RWExchangeGroupImpl< T >::clone | ( | ) | const [pure virtual] |
Returns a copy of self allocated off the heap.
Implemented in RWDivisionGroup< T >, RWEuroGroup< T >, and RWMultiplicationGroup< T >.
virtual RWExchange<T> RWExchangeGroupImpl< T >::getExchange | ( | const RWCString & | srcMnemonic, | |
const RWCString & | tragetMnemonic, | |||
const RWExchangeRateTable & | rates | |||
) | const [pure virtual] |
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.
Implemented in RWDivisionGroup< T >, RWEuroGroup< T >, and RWMultiplicationGroup< T >.
virtual RWCString RWExchangeGroupImpl< T >::name | ( | ) | const [pure virtual] |
Returns a name to be associated with the group.
Implemented in RWDivisionGroup< T >, RWEuroGroup< T >, and RWMultiplicationGroup< T >.
© 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.