Abstract base class for convention objects. More...
#include <ored/configuration/conventions.hpp>
Public Types | |
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... | |
Public Member Functions | |
virtual | ~Convention () |
Default destructor. More... | |
Inspectors | |
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... | |
convention interface definition | |
Type | type_ |
string | id_ |
virtual void | build ()=0 |
Convention () | |
Convention (const string &id, Type type) | |
Abstract base class for convention objects.
Definition at line 55 of file conventions.hpp.
|
strong |
Supported convention types.
Definition at line 58 of file conventions.hpp.
|
virtual |
|
protected |
Definition at line 101 of file conventions.hpp.
|
protected |
Definition at line 70 of file conventions.cpp.
const string & id | ( | ) | const |
Type type | ( | ) | const |
Definition at line 92 of file conventions.hpp.
|
pure virtual |
Implemented in ZeroRateConvention, DepositConvention, FutureConvention, FraConvention, OisConvention, IborIndexConvention, OvernightIndexConvention, SwapIndexConvention, IRSwapConvention, AverageOisConvention, TenorBasisSwapConvention, TenorBasisTwoSwapConvention, BMABasisSwapConvention, FXConvention, CrossCcyBasisSwapConvention, CrossCcyFixFloatSwapConvention, CdsConvention, InflationSwapConvention, SecuritySpreadConvention, CmsSpreadOptionConvention, CommodityForwardConvention, CommodityFutureConvention, FxOptionConvention, ZeroInflationIndexConvention, and BondYieldConvention.
|
protected |
Definition at line 103 of file conventions.hpp.
|
protected |
Definition at line 104 of file conventions.hpp.