#include <ored/utilities/indexnametranslator.hpp>
Public Member Functions | |
std::string | oreName (const std::string &qlName) const |
throws if qlName is not known More... | |
std::string | qlName (const std::string &oreName) const |
throws if oreName is not known More... | |
void | add (const std::string &qlName, const std::string &oreName) |
adds a pair to the mapping More... | |
void | clear () |
clears the mapping More... | |
Private Attributes | |
boost::bimap< std::string, std::string > | data_ |
boost::shared_mutex | mutex_ |
Allows translating from QuantLib::Index::name() to the ORE name that parses to that index and vice versa.
Definition at line 39 of file indexnametranslator.hpp.
std::string oreName | ( | const std::string & | qlName | ) | const |
throws if qlName is not known
Definition at line 27 of file indexnametranslator.cpp.
std::string qlName | ( | const std::string & | oreName | ) | const |
throws if oreName is not known
Definition at line 36 of file indexnametranslator.cpp.
void add | ( | const std::string & | qlName, |
const std::string & | oreName | ||
) |
adds a pair to the mapping
Definition at line 43 of file indexnametranslator.cpp.
void clear | ( | ) |
clears the mapping
Definition at line 49 of file indexnametranslator.cpp.
|
private |
Definition at line 54 of file indexnametranslator.hpp.
|
mutableprivate |
Definition at line 55 of file indexnametranslator.hpp.