View on GitHub

Cpptcl

C++/Tcl, a library that allows to easily integrate C++ and Tcl.

Download this project as a .zip file Download this project as a tar.gz file

Version 1.1.4.001 (09/07/2012)


Welcome to the C++/Tcl (original versions up to 1.1.3) library!

This library was written for C++ and Tcl programmers.
It was inspired by the Boost.Python library and was deliberately designed to provide a similar interface, taking into account the limitations of Tcl.

The C++/Tcl library offers the following features:
  1. Support for both extending Tcl with C++ modules and embedding Tcl in C++ applications.
  2. Possibility to expose free C++ functions as commands in Tcl.
  3. Possibility to define classes and class member functions, visible in Tcl in the style similar to SWIG wrappers.
  4. Possibility to manipulate Tcl lists and objects from the C++ code.

Quick Start
Extending Tcl by C++ module
Embedding Tcl in C++ program
Exposing Free Functions
Exposing Classes
Member functions
Constructors
Destructors
Objects and Lists
Call Policies
Factories and sinks
Variadic functions
Variable Traces
Define a trace function
Remove a defined trace
Various Goodies
Package support
Stream evaluation
Tcl Namespaces
Safe Tcl Interpreters
Aliasing
Errors
Compiling