27#include <ql/time/calendar.hpp>
28#include <ql/time/calendars/weekendsonly.hpp>
29#include <ql/time/date.hpp>
30#include <ql/types.hpp>
42QuantLib::ext::shared_ptr<MarketDatum>
parseMarketDatum(
const Date&,
const string&,
const Real&);
48 QuantLib::BusinessDayConvention bdc = QuantLib::BusinessDayConvention::Following);
54boost::variant<QuantLib::Period, FXForwardQuote::FxFwdString>
parseFxPeriod(
const string& s);
57QuantLib::Period
fxFwdQuoteTenor(
const boost::variant<QuantLib::Period, FXForwardQuote::FxFwdString>& term);
60QuantLib::Period
fxFwdQuoteStartTenor(
const boost::variant<QuantLib::Period, FXForwardQuote::FxFwdString>& term,
61 const QuantLib::ext::shared_ptr<FXConvention>&
fxConvention =
nullptr);
63bool matchFxFwdStringTerm(
const boost::variant<QuantLib::Period, FXForwardQuote::FxFwdString>& term,
QuantLib::ext::shared_ptr< MarketDatum > parseMarketDatum(const Date &asof, const string &datumName, const Real &value)
Function to parse a market datum.
Date getDateFromDateOrPeriod(const string &token, Date asof, QuantLib::Calendar cal, QuantLib::BusinessDayConvention bdc)
Get a date from a date string or period.
boost::variant< QuantLib::Period, FXForwardQuote::FxFwdString > parseFxPeriod(const string &s)
Convert text to QuantLib::Period of Fx forward string.
Market data representation.
QuantLib::ext::shared_ptr< FXConvention > fxConvention
bool matchFxFwdStringTerm(const boost::variant< QuantLib::Period, FXForwardQuote::FxFwdString > &term, const FXForwardQuote::FxFwdString &fxfwdString)
QuantLib::Period fxFwdQuoteStartTenor(const boost::variant< QuantLib::Period, FXForwardQuote::FxFwdString > &term, const QuantLib::ext::shared_ptr< FXConvention > &fxConvention)
QuantLib::Period fxFwdQuoteTenor(const boost::variant< QuantLib::Period, FXForwardQuote::FxFwdString > &term)
Serializable Credit Default Swap.