Container for storing Credit Default Swap quote conventions. More...
#include <ored/configuration/conventions.hpp>
Public Member Functions | |
Constructors | |
CdsConvention () | |
Default constructor. More... | |
CdsConvention (const string &id, const string &strSettlementDays, const string &strCalendar, const string &strFrequency, const string &strPaymentConvention, const string &strRule, const string &dayCounter, const string &settlesAccrual, const string &paysAtDefaultTime, const string &strUpfrontSettlementDays="", const string &lastPeriodDayCounter="") | |
Detailed constructor. More... | |
Inspectors | |
Natural | settlementDays () const |
const Calendar & | calendar () const |
Frequency | frequency () const |
BusinessDayConvention | paymentConvention () const |
DateGeneration::Rule | rule () const |
const DayCounter & | dayCounter () const |
bool | settlesAccrual () const |
bool | paysAtDefaultTime () const |
Natural | upfrontSettlementDays () const |
const DayCounter & | lastPeriodDayCounter () 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 | settlementDays_ |
Calendar | calendar_ |
Frequency | frequency_ |
BusinessDayConvention | paymentConvention_ |
DateGeneration::Rule | rule_ |
DayCounter | dayCounter_ |
bool | settlesAccrual_ |
bool | paysAtDefaultTime_ |
Natural | upfrontSettlementDays_ |
DayCounter | lastPeriodDayCounter_ |
string | strSettlementDays_ |
string | strCalendar_ |
string | strFrequency_ |
string | strPaymentConvention_ |
string | strRule_ |
string | strDayCounter_ |
string | strSettlesAccrual_ |
string | strPaysAtDefaultTime_ |
string | strUpfrontSettlementDays_ |
string | strLastPeriodDayCounter_ |
virtual void | fromXML (XMLNode *node0) 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 Credit Default Swap quote conventions.
Definition at line 1024 of file conventions.hpp.
CdsConvention | ( | ) |
Default constructor.
Definition at line 1160 of file conventions.cpp.
CdsConvention | ( | const string & | id, |
const string & | strSettlementDays, | ||
const string & | strCalendar, | ||
const string & | strFrequency, | ||
const string & | strPaymentConvention, | ||
const string & | strRule, | ||
const string & | dayCounter, | ||
const string & | settlesAccrual, | ||
const string & | paysAtDefaultTime, | ||
const string & | strUpfrontSettlementDays = "" , |
||
const string & | lastPeriodDayCounter = "" |
||
) |
Detailed constructor.
Definition at line 1163 of file conventions.cpp.
Natural settlementDays | ( | ) | const |
Definition at line 1040 of file conventions.hpp.
const Calendar & calendar | ( | ) | const |
Definition at line 1041 of file conventions.hpp.
Frequency frequency | ( | ) | const |
Definition at line 1042 of file conventions.hpp.
BusinessDayConvention paymentConvention | ( | ) | const |
Definition at line 1043 of file conventions.hpp.
DateGeneration::Rule rule | ( | ) | const |
Definition at line 1044 of file conventions.hpp.
const DayCounter & dayCounter | ( | ) | const |
Definition at line 1045 of file conventions.hpp.
bool settlesAccrual | ( | ) | const |
Definition at line 1046 of file conventions.hpp.
bool paysAtDefaultTime | ( | ) | const |
Definition at line 1047 of file conventions.hpp.
Natural upfrontSettlementDays | ( | ) | const |
Definition at line 1048 of file conventions.hpp.
const DayCounter & lastPeriodDayCounter | ( | ) | const |
Definition at line 1049 of file conventions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 1195 of file conventions.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 1216 of file conventions.cpp.
|
overridevirtual |
Implements Convention.
Definition at line 1176 of file conventions.cpp.
|
private |
Definition at line 1059 of file conventions.hpp.
|
private |
Definition at line 1060 of file conventions.hpp.
|
private |
Definition at line 1061 of file conventions.hpp.
|
private |
Definition at line 1062 of file conventions.hpp.
|
private |
Definition at line 1063 of file conventions.hpp.
|
private |
Definition at line 1064 of file conventions.hpp.
|
private |
Definition at line 1065 of file conventions.hpp.
|
private |
Definition at line 1066 of file conventions.hpp.
|
private |
Definition at line 1067 of file conventions.hpp.
|
private |
Definition at line 1068 of file conventions.hpp.
|
private |
Definition at line 1071 of file conventions.hpp.
|
private |
Definition at line 1072 of file conventions.hpp.
|
private |
Definition at line 1073 of file conventions.hpp.
|
private |
Definition at line 1074 of file conventions.hpp.
|
private |
Definition at line 1075 of file conventions.hpp.
|
private |
Definition at line 1076 of file conventions.hpp.
|
private |
Definition at line 1077 of file conventions.hpp.
|
private |
Definition at line 1078 of file conventions.hpp.
|
private |
Definition at line 1079 of file conventions.hpp.
|
private |
Definition at line 1080 of file conventions.hpp.