Logo
Reference manual - version ored_version
Public Member Functions | List of all members
IndexNameTranslator Class Reference

IndexNameTranslator. More...

#include <ored/utilities/indexnametranslator.hpp>

+ Inheritance diagram for IndexNameTranslator:

Public Member Functions

std::string oreName (const std::string &qlName) const
 throws if qlName is not known
 
std::string qlName (const std::string &oreName) const
 throws if oreName is not known
 
void add (const std::string &qlName, const std::string &oreName)
 adds a pair to the mapping
 
void clear ()
 clears the mapping
 

Detailed Description

IndexNameTranslator.

Allows translating from QuantLib::Index::name() to the ORE name that parses to that index and vice versa.