#include <ored/configuration/conventions.hpp>
Public Member Functions | |
Constructors | |
CommodityForwardConvention () | |
Default constructor. More... | |
CommodityForwardConvention (const string &id, const string &spotDays="", const string &pointsFactor="", const string &advanceCalendar="", const string &spotRelative="", BusinessDayConvention bdc=Following, bool outright=true) | |
Detailed constructor. More... | |
Inspectors | |
Natural | spotDays () const |
Real | pointsFactor () const |
const Calendar & | advanceCalendar () const |
string | strAdvanceCalendar () const |
bool | spotRelative () const |
BusinessDayConvention | bdc () const |
bool | outright () 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_ |
Real | pointsFactor_ |
Calendar | advanceCalendar_ |
bool | spotRelative_ |
BusinessDayConvention | bdc_ |
bool | outright_ |
string | strSpotDays_ |
string | strPointsFactor_ |
string | strAdvanceCalendar_ |
string | strSpotRelative_ |
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 Commodity forward quote conventions
Definition at line 1268 of file conventions.hpp.
CommodityForwardConvention | ( | const string & | id, |
const string & | spotDays = "" , |
||
const string & | pointsFactor = "" , |
||
const string & | advanceCalendar = "" , |
||
const string & | spotRelative = "" , |
||
BusinessDayConvention | bdc = Following , |
||
bool | outright = true |
||
) |
Detailed constructor.
Definition at line 1466 of file conventions.cpp.
Natural spotDays | ( | ) | const |
Definition at line 1283 of file conventions.hpp.
Real pointsFactor | ( | ) | const |
Definition at line 1284 of file conventions.hpp.
const Calendar & advanceCalendar | ( | ) | const |
Definition at line 1285 of file conventions.hpp.
string strAdvanceCalendar | ( | ) | const |
Definition at line 1286 of file conventions.hpp.
bool spotRelative | ( | ) | const |
Definition at line 1287 of file conventions.hpp.
BusinessDayConvention bdc | ( | ) | const |
Definition at line 1288 of file conventions.hpp.
bool outright | ( | ) | const |
Definition at line 1289 of file conventions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 1482 of file conventions.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 1506 of file conventions.cpp.
|
overridevirtual |
Implements Convention.
Definition at line 1475 of file conventions.cpp.
|
private |
Definition at line 1300 of file conventions.hpp.
|
private |
Definition at line 1301 of file conventions.hpp.
|
private |
Definition at line 1302 of file conventions.hpp.
|
private |
Definition at line 1303 of file conventions.hpp.
|
private |
Definition at line 1304 of file conventions.hpp.
|
private |
Definition at line 1305 of file conventions.hpp.
|
private |
Definition at line 1308 of file conventions.hpp.
|
private |
Definition at line 1309 of file conventions.hpp.
|
private |
Definition at line 1310 of file conventions.hpp.
|
private |
Definition at line 1311 of file conventions.hpp.