Serializable Commodity Position Data. More...
#include <ored/portfolio/commodityposition.hpp>
Public Member Functions | |
CommodityPositionData (const Real quantity, const std::vector< CommodityUnderlying > &underlyings) | |
Real | quantity () const |
const std::vector< CommodityUnderlying > & | underlyings () const |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) override |
Public Member Functions inherited from XMLSerializable | |
void | fromFile (const std::string &filename) |
void | toFile (const std::string &filename) |
void | fromXMLString (const std::string &xml) |
Parse from XML string. | |
std::string | toXMLString () |
Parse from XML string. | |
Serializable Commodity Position Data.