30#include <unordered_map>
85 const vector<pair<string, MarketConfiguration>>&
configurations()
const;
90 const map<string, string>&
mapping(
const MarketObject o,
const string& configuration)
const;
96 vector<string>
curveSpecs(
const string& configuration)
const;
150 void curveSpecs(
const map<
string, map<string, string>>&,
const string&, vector<string>&)
const;
161 [&configuration](
const pair<string, MarketConfiguration>& s) { return s.first == configuration; });
171 QL_REQUIRE(
hasConfiguration(configuration),
"configuration " << configuration <<
" not found");
173 [&configuration](
const pair<string, MarketConfiguration>& s) { return s.first == configuration; });
174 return it->second(o);
void setId(const MarketObject o, const string &id)
map< MarketObject, string > marketObjectIds_
string operator()(const MarketObject o) const
void add(const MarketConfiguration &o)
Today's Market Parameters.
vector< pair< string, MarketConfiguration > > configurations_
vector< string > curveSpecs(const string &configuration) const
Build a vector of all the curve specs (may contain duplicates)
bool hasConfiguration(const string &configuration) const
void addMarketObject(const MarketObject o, const string &id, const map< string, string > &assignments)
const vector< pair< string, MarketConfiguration > > & configurations() const
bool empty()
Check if any parameters.
const map< string, string > & mapping(const MarketObject o, const string &configuration) const
EUR => Yield/EUR/EUR6M, USD => Yield/USD/USD3M etc.
TodaysMarketParameters()
Default constructor.
map< MarketObject, map< string, map< string, string > > > marketObjects_
bool hasMarketObject(const MarketObject &o) const
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
void clear()
Clear the contents.
void addConfiguration(const string &name, const MarketConfiguration &configuration)
map< string, string > & mappingReference(const MarketObject o, const string &configuration)
return a mapping reference for modification
string marketObjectId(const MarketObject o, const string &configuration) const
Intermediate id for a given market object and configuration, see the description of configurations_ b...
Small XML Document wrapper class.
Base class for all serializable classes.
Classes and functions for log message handling.
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
std::set< MarketObject > getMarketObjectTypes()
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.