Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
ConfigurableCurrency Class Reference

Configurable currency class. More...

#include <qle/currencies/configurablecurrency.hpp>

+ Inheritance diagram for ConfigurableCurrency:
+ Collaboration diagram for ConfigurableCurrency:

Public Types

enum class  Type { Major , Metal , Crypto }
 

Public Member Functions

 ConfigurableCurrency (const std::string &name, const std::string &code, Integer numericCode, const std::string &symbol, const std::string &fractionSymbol, Integer fractionsPerUnit, const Rounding &rounding, const std::string &formatString, const std::set< std::string > &minorUnitCodes, Type currencyType=Type::Major)
 
Type currencyType () const
 

Private Attributes

ConfigurableCurrency::Type currencyType_
 

Detailed Description

Configurable currency class.

Definition at line 36 of file configurablecurrency.hpp.

Member Enumeration Documentation

◆ Type

enum class Type
strong

Constructor & Destructor Documentation

◆ ConfigurableCurrency()

ConfigurableCurrency ( const std::string &  name,
const std::string &  code,
Integer  numericCode,
const std::string &  symbol,
const std::string &  fractionSymbol,
Integer  fractionsPerUnit,
const Rounding &  rounding,
const std::string &  formatString,
const std::set< std::string > &  minorUnitCodes,
ConfigurableCurrency::Type  currencyType = Type::Major 
)

Definition at line 26 of file configurablecurrency.cpp.

31 : Currency(name, code, numericCode, symbol, fractionSymbol, fractionsPerUnit, rounding, formatString, Currency(),
32 minorUnitCodes),
34 data_ = QuantLib::ext::make_shared<Currency::Data>(name, code, numericCode, symbol, fractionSymbol, fractionsPerUnit,
35 rounding, formatString, Currency(), minorUnitCodes);
36}
ConfigurableCurrency::Type currencyType_

Member Function Documentation

◆ currencyType()

Type currencyType ( ) const

Definition at line 43 of file configurablecurrency.hpp.

43{ return currencyType_; }

Member Data Documentation

◆ currencyType_

ConfigurableCurrency::Type currencyType_
private

Definition at line 46 of file configurablecurrency.hpp.