Logo
Reference manual - version ored_version
ExpiryDate Class Reference

#include <ored/marketdata/expiry.hpp>

Inheritance diagram for ExpiryDate:

Public Member Functions

 ExpiryDate ()
 Default constructor.
 ExpiryDate (const QuantLib::Date &expiryDate)
 Constructor with explicit expiry date.
const QuantLib::Date & expiryDate () const
 Return the expiry date.
void fromString (const std::string &strExpiryDate) override
std::string toString () const override

Protected Member Functions

bool equal_to (const Expiry &other) const override
 Override in derived classes to compare specific expiries.

Friends

class boost::serialization::access
 Serialization.

Detailed Description

Expiry consisting of an explicit expiry date

Member Function Documentation

◆ fromString()

void fromString ( const std::string & strExpiryDate)
overridevirtual

Populate ExpiryDate object from strExpiryDate which should be a date. An exception is thrown if strExpiryDate cannot be parsed as a QuantLib::Date.

Implements Expiry.

◆ toString()

std::string toString ( ) const
overridevirtual

Writes the ExpiryDate object to string. This returns the string representation of the expiry date.

Implements Expiry.

◆ equal_to()

bool equal_to ( const Expiry & other) const
overrideprotectedvirtual

Override in derived classes to compare specific expiries.

Implements Expiry.