Container for storing FX Spot quote conventions. More...
#include <ored/configuration/conventions.hpp>
Inheritance diagram for FXConvention:
Collaboration diagram for FXConvention:Public Member Functions | |
Constructors | |
| FXConvention () | |
| Default constructor. More... | |
| FXConvention (const string &id, const string &spotDays, const string &sourceCurrency, const string &targetCurrency, const string &pointsFactor, const string &advanceCalendar="", const string &spotRelative="", const string &endOfMonth="", const string &convention="") | |
| Detailed constructor. More... | |
Inspectors | |
| Natural | spotDays () const |
| const Currency & | sourceCurrency () const |
| const Currency & | targetCurrency () const |
| Real | pointsFactor () const |
| const Calendar & | advanceCalendar () const |
| bool | spotRelative () const |
| bool | endOfMonth () const |
| BusinessDayConvention | convention () const |
Public Member Functions inherited from Convention | |
| virtual | ~Convention () |
| Default destructor. More... | |
| const string & | id () const |
| Type | type () const |
Public Member Functions inherited from XMLSerializable | |
| virtual | ~XMLSerializable () |
| virtual void | fromXML (XMLNode *node)=0 |
| virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
| void | fromFile (const std::string &filename) |
| void | toFile (const std::string &filename) const |
| void | fromXMLString (const std::string &xml) |
| Parse from XML string. More... | |
| std::string | toXMLString () const |
| Parse from XML string. More... | |
Serialisation | |
| Natural | spotDays_ |
| Currency | sourceCurrency_ |
| Currency | targetCurrency_ |
| Real | pointsFactor_ |
| Calendar | advanceCalendar_ |
| bool | spotRelative_ |
| bool | endOfMonth_ |
| BusinessDayConvention | convention_ |
| string | strSpotDays_ |
| string | strSourceCurrency_ |
| string | strTargetCurrency_ |
| string | strPointsFactor_ |
| string | strAdvanceCalendar_ |
| string | strSpotRelative_ |
| string | strEndOfMonth_ |
| string | strConvention_ |
| virtual void | fromXML (XMLNode *node) override |
| virtual XMLNode * | toXML (XMLDocument &doc) const override |
| virtual void | build () override |
Additional Inherited Members | |
Public Types inherited from Convention | |
| enum class | Type { Zero , Deposit , Future , FRA , OIS , Swap , AverageOIS , TenorBasisSwap , TenorBasisTwoSwap , BMABasisSwap , FX , CrossCcyBasis , CrossCcyFixFloat , CDS , IborIndex , OvernightIndex , SwapIndex , ZeroInflationIndex , InflationSwap , SecuritySpread , CMSSpreadOption , CommodityForward , CommodityFuture , FxOption , BondYield } |
| Supported convention types. More... | |
Protected Member Functions inherited from Convention | |
| Convention () | |
| Convention (const string &id, Type type) | |
Protected Attributes inherited from Convention | |
| Type | type_ |
| string | id_ |
Container for storing FX Spot quote conventions.
Definition at line 785 of file conventions.hpp.
| FXConvention | ( | ) |
| FXConvention | ( | const string & | id, |
| const string & | spotDays, | ||
| const string & | sourceCurrency, | ||
| const string & | targetCurrency, | ||
| const string & | pointsFactor, | ||
| const string & | advanceCalendar = "", |
||
| const string & | spotRelative = "", |
||
| const string & | endOfMonth = "", |
||
| const string & | convention = "" |
||
| ) |
Detailed constructor.
Definition at line 847 of file conventions.cpp.
Here is the call graph for this function:| Natural spotDays | ( | ) | const |
Definition at line 799 of file conventions.hpp.
| const Currency & sourceCurrency | ( | ) | const |
Definition at line 800 of file conventions.hpp.
| const Currency & targetCurrency | ( | ) | const |
Definition at line 801 of file conventions.hpp.
| Real pointsFactor | ( | ) | const |
Definition at line 802 of file conventions.hpp.
| const Calendar & advanceCalendar | ( | ) | const |
Definition at line 803 of file conventions.hpp.
| bool spotRelative | ( | ) | const |
Definition at line 804 of file conventions.hpp.
| bool endOfMonth | ( | ) | const |
Definition at line 805 of file conventions.hpp.
| BusinessDayConvention convention | ( | ) | const |
Definition at line 806 of file conventions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 867 of file conventions.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 886 of file conventions.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements Convention.
Definition at line 856 of file conventions.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 817 of file conventions.hpp.
|
private |
Definition at line 818 of file conventions.hpp.
|
private |
Definition at line 819 of file conventions.hpp.
|
private |
Definition at line 820 of file conventions.hpp.
|
private |
Definition at line 821 of file conventions.hpp.
|
private |
Definition at line 822 of file conventions.hpp.
|
private |
Definition at line 823 of file conventions.hpp.
|
private |
Definition at line 824 of file conventions.hpp.
|
private |
Definition at line 827 of file conventions.hpp.
|
private |
Definition at line 828 of file conventions.hpp.
|
private |
Definition at line 829 of file conventions.hpp.
|
private |
Definition at line 830 of file conventions.hpp.
|
private |
Definition at line 831 of file conventions.hpp.
|
private |
Definition at line 832 of file conventions.hpp.
|
private |
Definition at line 833 of file conventions.hpp.
|
private |
Definition at line 834 of file conventions.hpp.