calling methods from differently named classes in QLXL

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

calling methods from differently named classes in QLXL

japari
Hi all,

Say I have written:

namespace QuantLibAddin {

  class B
    : public ObjectHandler::LibraryObject<QuantLib::A> {
      ...........................
  };

}

just I dont want to call it A too because I am having a bad day.

When I want to invoke a member of A directly in an excel function I have to type
<Member name='qlDoSomething' type='QuantLib::A' >
or
<Member name='qlDoSomething' type='QuantLibAddin::B' >
and write the forwarding code in this last case.

both types are registered in types.xml

The question is; when I made the relation between the two objects in the first of the two cases above; how do I generate
        OH_GET_REFERENCE(ObjectIdLibObjPtr, ObjectId,
            QuantLibAddin::B, QuantLib::A)
instead of
        OH_GET_REFERENCE(ObjectIdLibObjPtr, ObjectId,
            QuantLibAddin::A, QuantLib::A)
?

I guess there must be a point where the relation is made but I am lost.

Best
Pepe


------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users