24#ifndef quantlib_commodity_type_hpp
25#define quantlib_commodity_type_hpp
50 const std::string&
code()
const;
52 const std::string&
name()
const;
const std::string & code() const
commodity code, e.g, "HO"
const std::string & name() const
name, e.g, "Heating Oil"
bool empty() const
is this a usable instance?
static std::map< std::string, ext::shared_ptr< Data > > commodityTypes_
CommodityType()=default
default constructor
ext::shared_ptr< Data > data_
bool operator==(const Currency &c1, const Currency &c2)
std::ostream & operator<<(std::ostream &out, GFunctionFactory::YieldCurveModel type)
bool operator!=(const Currency &c1, const Currency &c2)
Global definitions and compiler switches.
Maps shared_ptr to either the boost or std implementation.
Data(std::string name, std::string code)