Basic Concrete impl that loads an big XML and keeps data in memory. More...
#include <ored/portfolio/referencedata.hpp>
Public Member Functions | |
BasicReferenceDataManager () | |
BasicReferenceDataManager (const string &filename) | |
void | appendData (const string &filename) |
QuantLib::ext::shared_ptr< ReferenceDatum > | buildReferenceDatum (const string &refDataType) |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
void | clear () |
bool | hasData (const string &type, const string &id, const QuantLib::Date &asof=QuantLib::Null< QuantLib::Date >()) override |
QuantLib::ext::shared_ptr< ReferenceDatum > | getData (const string &type, const string &id, const QuantLib::Date &asof=QuantLib::Null< QuantLib::Date >()) override |
void | add (const QuantLib::ext::shared_ptr< ReferenceDatum > &referenceDatum) override |
QuantLib::ext::shared_ptr< ReferenceDatum > | addFromXMLNode (XMLNode *node, const std::string &id=std::string(), const QuantLib::Date &validFrom=QuantLib::Null< QuantLib::Date >()) |
Public Member Functions inherited from ReferenceDataManager | |
virtual | ~ReferenceDataManager () |
virtual bool | hasData (const string &type, const string &id, const QuantLib::Date &asof=QuantLib::Null< QuantLib::Date >())=0 |
virtual QuantLib::ext::shared_ptr< ReferenceDatum > | getData (const string &type, const string &id, const QuantLib::Date &asof=QuantLib::Null< QuantLib::Date >())=0 |
virtual void | add (const QuantLib::ext::shared_ptr< ReferenceDatum > &referenceDatum)=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) |
Parse from XML string. More... | |
std::string | toXMLString () const |
Parse from XML string. More... | |
Protected Member Functions | |
std::tuple< QuantLib::Date, QuantLib::ext::shared_ptr< ReferenceDatum > > | latestValidFrom (const string &type, const string &id, const QuantLib::Date &asof) const |
void | check (const string &type, const string &id, const QuantLib::Date &asof) const |
Protected Attributes | |
map< std::pair< string, string >, std::map< QuantLib::Date, QuantLib::ext::shared_ptr< ReferenceDatum > > > | data_ |
std::set< std::tuple< string, string, QuantLib::Date > > | duplicates_ |
map< std::pair< string, string >, std::map< QuantLib::Date, string > > | buildErrors_ |
Basic Concrete impl that loads an big XML and keeps data in memory.
Definition at line 560 of file referencedata.hpp.
Definition at line 562 of file referencedata.hpp.
BasicReferenceDataManager | ( | const string & | filename | ) |
Definition at line 563 of file referencedata.hpp.
void appendData | ( | const string & | filename | ) |
Definition at line 566 of file referencedata.hpp.
QuantLib::ext::shared_ptr< ReferenceDatum > buildReferenceDatum | ( | const string & | refDataType | ) |
Definition at line 688 of file referencedata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 620 of file referencedata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 695 of file referencedata.cpp.
void clear | ( | ) |
Definition at line 574 of file referencedata.hpp.
|
overridevirtual |
Implements ReferenceDataManager.
Definition at line 732 of file referencedata.cpp.
|
overridevirtual |
Implements ReferenceDataManager.
Definition at line 742 of file referencedata.cpp.
|
overridevirtual |
Implements ReferenceDataManager.
Definition at line 628 of file referencedata.cpp.
QuantLib::ext::shared_ptr< ReferenceDatum > addFromXMLNode | ( | XMLNode * | node, |
const std::string & | id = std::string() , |
||
const QuantLib::Date & | validFrom = QuantLib::Null<QuantLib::Date>() |
||
) |
Definition at line 633 of file referencedata.cpp.
|
protected |
Definition at line 705 of file referencedata.cpp.
|
protected |
Definition at line 717 of file referencedata.cpp.
|
protected |
Definition at line 589 of file referencedata.hpp.
|
protected |
Definition at line 590 of file referencedata.hpp.
|
protected |
Definition at line 591 of file referencedata.hpp.