[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] c++ and OTcl objects
hello,
what is the connection between the TclClass and the
TCl Objects both the interpreted and the shadow(C++_
objects)?As far as i understood I think this is what
is happening:
eg.
class fooTclClass :public TclClass
{
fooTclClass():TclClass("FOO"){}
}fooObj;
At start up of ns this creates the interpreted
hierarchy and the fooObj.
Later when we say in the tcl script
new Foo "X"
it calls the interpreted class constructor that calls
the TclObject constructor.This calls createShadow()
method of this class which creates shadow objects for
the C++ heirarchy and then this returns the final
TclObject of the C++ heirarchy.
Questions:
1.Is this right?
2.There is a create method to be used in every
TclClass derived class i.e in our case the
fooTclClass.What is this for?
thanks in advance,
bindu
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com