|
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?
|