Hi,

Anybody knows how to pass multiple objects from oTcl to c++ ??

For example I want to retrieve 2 link head object ( link_($src1:$dst1) and  
link_($src2:$dst2) ) from oTcl calling from C++ Simulator class

    NsObject* Simulator::getTheLinks(ParentNode *src1, int dst1, ParentNode 
*src2, int dst2 ) {
    
        Tcl& tcl = Tcl::instance();
        tcl.evalf("[Simulator instance] get-link-head %d %d %d %d", 
src1->nodeid(), dst1, src2->nodeid(), dst2);

    }

Assume that the Simulator get-link-head instproc will return 2 links head in a 
form of list or arrays 

        return links [list  link_($src1:$dst1) link_($src2:$dst2)]

So now how to retrieve those 2 links head  and associate them to different C++ 
NsObject *pointers using tcl.result() ??? 

Reply via email to