ObjectHandler::ohObjectLoad & Usage in standalone C++ Program
Posted by michael_ql on Aug 09, 2016; 12:32am
URL: http://quantlib.414.s1.nabble.com/ObjectHandler-ohObjectLoad-Usage-in-standalone-C-Program-tp17638.html
I have an XML file representation of a Schedule object which I have saved down from Excel that I wish to load into a standalone C++ program.
I have the following code that would load and use the object.
ObjectHandler::SerializationFactory::instance().loadObject(
"c:/temp",
"asched.xml",
false,
true);
OH_GET_REFERENCE(ObjectIdLibObjPtr, "sched",
QuantLibAddin::Schedule, QuantLib::Schedule)
For this to work I need to register the appropriate factories (Processor, Serialisation).
Is there a recommended way of getting this to work in a standalone C++ application?