Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Convention Class Referenceabstract

Abstract base class for convention objects. More...

#include <ored/configuration/conventions.hpp>

+ Inheritance diagram for Convention:
+ Collaboration diagram for Convention:

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 XMLNodetoXML (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)
 

Detailed Description

Abstract base class for convention objects.

Definition at line 55 of file conventions.hpp.

Member Enumeration Documentation

◆ Type

enum class Type
strong

Supported convention types.

Enumerator
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 

Definition at line 58 of file conventions.hpp.

58 {
59 Zero,
60 Deposit,
61 Future,
62 FRA,
63 OIS,
64 Swap,
69 FX,
72 CDS,
84 };

Constructor & Destructor Documentation

◆ ~Convention()

virtual ~Convention ( )
virtual

Default destructor.

Definition at line 87 of file conventions.hpp.

87{}

◆ Convention() [1/2]

Convention ( )
protected

Definition at line 101 of file conventions.hpp.

101{}

◆ Convention() [2/2]

Convention ( const string &  id,
Type  type 
)
protected

Definition at line 70 of file conventions.cpp.

Member Function Documentation

◆ id()

const string & id ( ) const

Definition at line 91 of file conventions.hpp.

91{ return id_; }
+ Here is the caller graph for this function:

◆ type()

Type type ( ) const

Definition at line 92 of file conventions.hpp.

92{ return type_; }

◆ build()

virtual void build ( )
pure virtual

Member Data Documentation

◆ type_

Type type_
protected

Definition at line 103 of file conventions.hpp.

◆ id_

string id_
protected

Definition at line 104 of file conventions.hpp.