25#ifndef quantlib_unit_of_measure_conversion_manager_hpp
26#define quantlib_unit_of_measure_conversion_manager_hpp
37 :
public Singleton<UnitOfMeasureConversionManager> {
51 std::list<UnitOfMeasureConversion>
data_;
60 std::list<std::string> forbidden =
61 std::list<std::string>())
const;
Basic support for the singleton pattern.
repository of conversion factors between units of measure
void add(const UnitOfMeasureConversion &)
UnitOfMeasureConversion lookup(const CommodityType &commodityType, const UnitOfMeasure &, const UnitOfMeasure &, UnitOfMeasureConversion::Type type=UnitOfMeasureConversion::Derived) const
std::list< UnitOfMeasureConversion > data_
void addKnownConversionFactors()
UnitOfMeasureConversionManager()
UnitOfMeasureConversion smartLookup(const CommodityType &commodityType, const UnitOfMeasure &source, const UnitOfMeasure &target, std::list< std::string > forbidden=std::list< std::string >()) const
UnitOfMeasureConversion directLookup(const CommodityType &commodityType, const UnitOfMeasure &source, const UnitOfMeasure &target) const
Unit of measure specification
basic support for the singleton pattern
Unit of measure conversion.