#include <orea/simm/simmbasicnamemapper.hpp>
Inheritance diagram for SimmBasicNameMapper:
Collaboration diagram for SimmBasicNameMapper:Public Member Functions | |
| std::string | qualifier (const std::string &externalName) const override |
| std::string | validTo (const std::string &externalName) const |
| Qualifier mapping expiry (ISO date), may be blank and interpreted as QL::maxDate() More... | |
| QuantLib::Date | validToDate (const std::string &externalName) const |
| Qualifier mapping expiry (QuantLib date) More... | |
| std::string | validFrom (const std::string &externalName) const |
| Qualifier mapping start date (ISO date), may be blank and interpreted as QL::minDate() More... | |
| QuantLib::Date | validFromDate (const std::string &externalName) const |
| Qualifier mapping startDate (QuantLib date) More... | |
| bool | hasQualifier (const std::string &externalName) const override |
| Has qualifier. More... | |
| bool | hasValidQualifier (const std::string &externalName, const QuantLib::Date &referenceDate) const |
| Has qualifier that is valid w.r.t. given reference date. More... | |
| std::string | externalName (const std::string &qualifier) const override |
| reverse lookup on qualifier More... | |
Public Member Functions inherited from SimmNameMapper | |
| virtual | ~SimmNameMapper () |
| Destructor. More... | |
| virtual std::string | qualifier (const std::string &externalName) const =0 |
| virtual bool | hasQualifier (const std::string &externalName) const =0 |
| virtual std::string | externalName (const std::string &qualifier) const =0 |
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) |
| std::string | toXMLString () const |
Serialisation | |
| std::map< std::string, std::string > | mapping_ |
| std::map< std::string, std::string > | validFrom_ |
| std::map< std::string, std::string > | validTo_ |
| ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
| void | fromXML (ore::data::XMLNode *node) override |
| void | addMapping (const std::string &externalName, const std::string &qualifier, const std::string &validFrom="", const std::string &validTo="") |
| Add a single mapping. More... | |
Definition at line 35 of file simmbasicnamemapper.hpp.
|
overridevirtual |
Return the SIMM Qualifier for a given external name.
externalName cannot be mapped to a qualifier the externalName itself is returned. In this way, the mapper is basic and places the burden on the caller to call it only when a mapping is needed. Implements SimmNameMapper.
Definition at line 35 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| string validTo | ( | const std::string & | externalName | ) | const |
Qualifier mapping expiry (ISO date), may be blank and interpreted as QL::maxDate()
Definition at line 53 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Date validToDate | ( | const std::string & | externalName | ) | const |
Qualifier mapping expiry (QuantLib date)
Definition at line 71 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| string validFrom | ( | const std::string & | externalName | ) | const |
Qualifier mapping start date (ISO date), may be blank and interpreted as QL::minDate()
Definition at line 62 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Date validFromDate | ( | const std::string & | externalName | ) | const |
Qualifier mapping startDate (QuantLib date)
Definition at line 80 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Has qualifier.
Implements SimmNameMapper.
Definition at line 89 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool hasValidQualifier | ( | const std::string & | externalName, |
| const QuantLib::Date & | referenceDate | ||
| ) | const |
Has qualifier that is valid w.r.t. given reference date.
Definition at line 91 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
|
overridevirtual |
reverse lookup on qualifier
Implements SimmNameMapper.
Definition at line 97 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 152 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 104 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:| void addMapping | ( | const std::string & | externalName, |
| const std::string & | qualifier, | ||
| const std::string & | validFrom = "", |
||
| const std::string & | validTo = "" |
||
| ) |
Add a single mapping.
Definition at line 175 of file simmbasicnamemapper.cpp.
Here is the call graph for this function:
|
protected |
A mapping from external name to SIMM Qualifier
Definition at line 81 of file simmbasicnamemapper.hpp.
|
protected |
Start and expiry date (ISO) of each mapping
Definition at line 85 of file simmbasicnamemapper.hpp.
|
protected |
Definition at line 85 of file simmbasicnamemapper.hpp.