SourcePro® 2021.1 |
SourcePro® API Reference Guide |
Product Documentation: SourcePro Documentation Home |
Represents a collection of currencies that have a common distinguishing characteristic for converting money from one currency to money of another currency. More...
#include <rw/currency/multexchggrp.h>
Public Member Functions | |
RWMultiplicationGroup () | |
virtual RWExchangeGroupImpl< T > * | clone () const |
virtual RWExchange< T > | getExchange (const RWCString &srcMnemonic, const RWCString &tragetMnemonic, const RWExchangeRateTable &rates) const |
virtual RWCString | name () const |
![]() | |
RWExchangeGroupImpl () | |
Static Public Member Functions | |
static RWExchangeGroup< T > | create () |
Static Public Attributes | |
static const char * | groupName |
Currency exchange groups are collections of currencies that have a common distinguishing characteristic for converting money from one currency to money of another currency. RWMultiplicationGroup is made up of objects that convert a source currency to a target currency by multiplying the amount of the source currency by a conversion factor.
The multiplication exchange group overrides the base class method:
so that it looks in the exchange rate table for an exchange rate that converts the source currency to the target currency. If it finds one, it creates and returns an RWExchange object with an RWMultiplicationExchange implementation. If it does not find one, it returns an invalid RWExchange object.
|
inline |
Default constructor. Constructs an empty group.
|
inlinevirtual |
Returns a copy of self allocated off the heap.
Implements RWExchangeGroupImpl< T >.
|
static |
Creates an RWExchangeGroup object with an RWMultiplicationGroup implementation.
|
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.
Implements RWExchangeGroupImpl< T >.
|
inlinevirtual |
Returns a name to be associated with the group.
Implements RWExchangeGroupImpl< T >.
|
static |
Name associated with the group. Returned by the name() member function.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |