Monday, September 6, 2010

C++ and OTcl Linkage: Result — Passing Values between C++ and OTcl domains

ote: The content in this series is extracted from the book, Introduction to Network Simulator NS2. You may have to read chapter 3 of the book for better understanding.

Introduction
This post is the second post in the series on C++ and OTcl Linkage:

   1. Why Two Languages?
   2. Binding C++ and OTcl classes [Main steps, The mechanism].
   3. Variable binding
   4. OTcl command: Invoking C++ statements from the OTcl domain [ Getting Started, Invocation process, Binding OTcl and C++ ]
   5. Eval: Invoking OTcl statements from the C++ domain
   6. Result: Passing Values between C++ and OTcl domains
   7. Object binding and object construction process.
In the previous post, I blogged about an approach to invoke OTcl statements from the C++ domain using function evalc(...) and evalf(...). This post discusses the way to pass results between C++ and OTcl domains using function result(...).

Passing Values Between C++ and OTcl

View more presentations from Teerawat Issariyakul.
======================================================
T. Issaraiyakul and E. Hossain, “Introduction to Network Simulator NS2”, Springer 2009.


You may also find lecture notes and other resource at the following website: http://www.ece.ubc.ca/~teerawat/NS2.htm

No comments: