Container for storing Deposit conventions. More...
#include <ored/configuration/conventions.hpp>
Public Member Functions | |
Constructors | |
DepositConvention () | |
Default constructor. More... | |
DepositConvention (const string &id, const string &index) | |
Index based constructor. More... | |
DepositConvention (const string &id, const string &calendar, const string &convention, const string &eom, const string &dayCounter, const string &settlementDays) | |
Detailed constructor. More... | |
Inspectors | |
const string & | index () const |
const Calendar & | calendar () const |
BusinessDayConvention | convention () const |
bool | eom () |
const DayCounter & | dayCounter () const |
const Size | settlementDays () const |
bool | indexBased () |
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 | |
string | index_ |
Calendar | calendar_ |
BusinessDayConvention | convention_ |
bool | eom_ |
DayCounter | dayCounter_ |
Size | settlementDays_ |
bool | indexBased_ |
string | strCalendar_ |
string | strConvention_ |
string | strEom_ |
string | strDayCounter_ |
string | strSettlementDays_ |
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 Deposit conventions.
Definition at line 252 of file conventions.hpp.
DepositConvention | ( | const string & | id, |
const string & | index | ||
) |
DepositConvention | ( | const string & | id, |
const string & | calendar, | ||
const string & | convention, | ||
const string & | eom, | ||
const string & | dayCounter, | ||
const string & | settlementDays | ||
) |
Detailed constructor.
Definition at line 171 of file conventions.cpp.
const string & index | ( | ) | const |
Definition at line 267 of file conventions.hpp.
const Calendar & calendar | ( | ) | const |
Definition at line 268 of file conventions.hpp.
BusinessDayConvention convention | ( | ) | const |
Definition at line 269 of file conventions.hpp.
bool eom | ( | ) |
Definition at line 270 of file conventions.hpp.
const DayCounter & dayCounter | ( | ) | const |
Definition at line 271 of file conventions.hpp.
const Size settlementDays | ( | ) | const |
Definition at line 272 of file conventions.hpp.
bool indexBased | ( | ) |
Definition at line 273 of file conventions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 186 of file conventions.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 206 of file conventions.cpp.
|
overridevirtual |
Implements Convention.
Definition at line 178 of file conventions.cpp.
|
private |
Definition at line 284 of file conventions.hpp.
|
private |
Definition at line 285 of file conventions.hpp.
|
private |
Definition at line 286 of file conventions.hpp.
|
private |
Definition at line 287 of file conventions.hpp.
|
private |
Definition at line 288 of file conventions.hpp.
|
private |
Definition at line 289 of file conventions.hpp.
|
private |
Definition at line 290 of file conventions.hpp.
|
private |
Definition at line 293 of file conventions.hpp.
|
private |
Definition at line 294 of file conventions.hpp.
|
private |
Definition at line 295 of file conventions.hpp.
|
private |
Definition at line 296 of file conventions.hpp.
|
private |
Definition at line 297 of file conventions.hpp.