#include <ored/portfolio/legdatafactory.hpp>
Public Member Functions | |
LegDataRegister (const std::string &legType) | |
Leg data registration class
This class is used in any class derived from LegAdditionalData
to register itself with the LegDataFactory
so that it can be built via a call to LegDataFactory::instance().build(const std::string& legType)
As a concrete example, a FixedLegData
class derived from LegAdditionalData
should have the following form in order to register it with the LegDataFactory:
In fixedlegdata.hpp
In fixedlegdata.cpp