- Main Page
- Classes
- Directories
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# TclInterp Class Reference

Encapsulates Tcl interpret, manages logging. More...

`#include <tcl_interp.h>`

Inheritance diagram for TclInterp:

List of all members.

## Public Member Functions

const char * | getType () const
| Return type of class.
Tcl_Interp * | getInterp () const
| Returns pointer to Tcl interpret.
| TclInterp (Tcl_Interp *interp, ostream &logstream)
| TclInterp (Tcl_Interp *interp, const char *fileName)
int | eval (const string &s) const
| Evaluate script in shell.
Tcl_Obj * | getObjResult () const
| Return script evaluation result.
char * | getStrResult () const
| Return script evaluation result.
int | getIntResult () const
| Return script evaluation result.
bool | isNullResult () const
| Test if script evaluation result is NULL.

## Static Public Member Functions

static string & | getCodeName (int retCode)
| Translates Tcl shell return code in integer format to string.

## Public Attributes

bool | logging
| If true, each eval command will be logged.

## Static Public Attributes

static Ptr< TclInterp > | defaultInterp
| Default intepret.

## Detailed Description

Encapsulates Tcl interpret, manages logging.

Date:
  01-11-2006

Author:
  Ondrej Svejdar

Todo:

Bug:

## Constructor & Destructor Documentation

TclInterp::TclInterp | ( | Tcl_Interp * | interp,
|  | ostream & | logstream
| ) |

Parameters:

  | interp | interpret
  | logstream | reference to logstream

TclInterp::TclInterp | ( | Tcl_Interp * | interp,
|  | const char * | fileName
| ) |

Parameters:

  | interp | interpret
  | fileName | file for logging

## Member Function Documentation

int TclInterp::eval | ( | const string & | s | ) | const

| Evaluate script in shell.

Parameters:

  | s | string to evaluate

Returns:
  script evaluation return code

string & TclInterp::getCodeName | ( | int | retCode | ) | `[static]`

| Translates Tcl shell return code in integer format to string.

Parameters:

  | retCode | Tcl shell return code value

Returns:
  name of return code

Tcl_Interp* TclInterp::getInterp | ( |  | ) | const`[inline]`

| Returns pointer to Tcl interpret.

Returns:
  pointer to Tcl interpret

int TclInterp::getIntResult | ( |  | ) | const

| Return script evaluation result.

Returns:
  result as integer value

Tcl_Obj * TclInterp::getObjResult | ( |  | ) | const

| Return script evaluation result.

Returns:
  pointer to result

char * TclInterp::getStrResult | ( |  | ) | const

| Return script evaluation result.

Returns:
  pointer to result

const char * TclInterp::getType | ( |  | ) | const`[virtual]`

| Return type of class.

Returns:
  type of class

Reimplemented from TObject.

bool TclInterp::isNullResult | ( |  | ) | const

| Test if script evaluation result is NULL.

Returns:
  true if script evaluation result is NULL

The documentation for this class was generated from the following files:

- H:/projs/dotNET/eda/src/tk/tcl_interp.h
- H:/projs/dotNET/eda/src/tk/tcl_interp.cpp