#include <ored/model/calibrationinstrumentfactory.hpp>
Public Member Functions | |
CalibrationInstrumentRegister (const std::string &instrumentType) | |
Calibration instrument registration class
This class is used in any class derived from CalibrationInstrument
to register itself with the CalibrationInstrumentFactory
so that it can be built via a call to CalibrationInstrumentFactory::instance().build(const std::string& instrumentType)
.
As a concrete example, a CpiCapFloor
class derived from CalibrationInstrument
should have the following form in order to register it with the CalibrationInstrumentFactory:
In cpicapfloor.hpp
In cpicapfloor.cpp