[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Interfacing Otcl with C++ classes
Hello,
I am unclear as to a basic issue which involves interfacing OTcl code with
a new C++ class which I create.
The way to create the new TclObject is to derive from the TclClass. What
is unclear to me is that how is the new TclObject recognised within ns.
I have read in the ns documentation that if I add a new .tcl file to be
sourced in ~ns/tcl/lib/ns-lib.tcl it will automatically get sourced by ns
at startup.
However I yet do not understand how I can "bind" the relevant .tcl file
to the new class which I have created in a .cc file.
Thanks in advance,
Amit Saxena.