S
Soumen
Hi,
Not sure if this most appropriate group for this post. But I've seen
couple of posts related to C++/Tcl in this group. And that makes me
post this query in this group. Please redirect me to correct group
if this is not the most appropriate one.
I'm a newbie in Tcl and Tcl/C++ interfacing. I need to develop a
prototype for one of our upcoming project.
I've a shared library which provides Tcl procedures to traverse
through some graph which is being created upon reading a file
of specific format. If I load this shared library in Tcl shell and
call those proc to read the specific file and traverse the graph.
Graph traversal proc are like:
* getting neighbor nodes of a given node
* getting the node name and edge names to/from a node
Let's name this Tcl library GL (graph lib).
Now, in my C++ program I need create a duplicate graph since I don't
have capability read that file directly. So from my C++ code, I need
to
create a Tcl channel, send commands through the Tcl channel for GL
procs and get information from those GL procs to my C++ application
to build a duplicate graph on my end.
Could some one provide hints how to go about this? Any pointers to
existing resource (doc/open source code) will be very helpful.
Regards,
~ Soumen
Not sure if this most appropriate group for this post. But I've seen
couple of posts related to C++/Tcl in this group. And that makes me
post this query in this group. Please redirect me to correct group
if this is not the most appropriate one.
I'm a newbie in Tcl and Tcl/C++ interfacing. I need to develop a
prototype for one of our upcoming project.
I've a shared library which provides Tcl procedures to traverse
through some graph which is being created upon reading a file
of specific format. If I load this shared library in Tcl shell and
call those proc to read the specific file and traverse the graph.
Graph traversal proc are like:
* getting neighbor nodes of a given node
* getting the node name and edge names to/from a node
Let's name this Tcl library GL (graph lib).
Now, in my C++ program I need create a duplicate graph since I don't
have capability read that file directly. So from my C++ code, I need
to
create a Tcl channel, send commands through the Tcl channel for GL
procs and get information from those GL procs to my C++ application
to build a duplicate graph on my end.
Could some one provide hints how to go about this? Any pointers to
existing resource (doc/open source code) will be very helpful.
Regards,
~ Soumen