# WOK
TKWOKTcl
WOKTclTools

# WOKTclTools_Interpretor Class Reference

`#include <WOKTclTools_Interpretor_proto.hxx>`

Inheritance diagram for WOKTclTools_Interpretor:

[legend]

## Public Member Functions

Standard_EXPORT | WOKTclTools_Interpretor ()
Standard_EXPORT | WOKTclTools_Interpretor (const WOKTclTools_PInterp &anInterp)
Standard_EXPORT void | Add (const Standard_CString Command, const Standard_CString Help, const WOKTclTools_CommandFunction Function, const Standard_CString Group="User Commands")
Standard_EXPORT void | Add (const Standard_CString Command, const Standard_CString Help, const WOKTclTools_WokCommand Function, const Standard_CString Group="User Commands")
Standard_EXPORT void | AddExitHandler (const WOKTclTools_ExitHandler Function)
Standard_EXPORT void | DeleteExitHandler (const WOKTclTools_ExitHandler Function)
Standard_EXPORT Standard_Boolean | IsCmdName (const Standard_CString Command)
Standard_EXPORT Standard_Boolean | Remove (const Standard_CString Command)
Standard_EXPORT Standard_Integer | PkgProvide (const Standard_CString aname, const Standard_CString aversion)
Standard_EXPORT Standard_Integer | TreatReturn (const WOKTools_Return &values)
Standard_EXPORT Standard_CString | Result () const
Standard_EXPORT Standard_Boolean | GetReturnValues (WOKTools_Return &retval) const
Standard_EXPORT void | Reset ()
Standard_EXPORT void | Append (const Standard_CString Result)
Standard_EXPORT void | Append (const Standard_Integer Result)
Standard_EXPORT void | Append (const Standard_Real Result)
Standard_EXPORT void | AppendElement (Standard_CString Result)
Standard_EXPORT Standard_Integer | Eval (const Standard_CString Script)
Standard_EXPORT Standard_Integer | RecordAndEval (const Standard_CString Script, const Standard_Integer Flags=0)
Standard_EXPORT Standard_Integer | EvalFile (const Standard_CString FileName)
Standard_EXPORT void | Destroy ()
| ~WOKTclTools_Interpretor ()
Standard_EXPORT void | Set (const WOKTclTools_PInterp &anInterp)
Standard_EXPORT WOKTclTools_PInterp | Interp () const
Standard_EXPORT void | TreatMessage (const Standard_Boolean newline, const Standard_Character atype, const Standard_CString amsg) const
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const
Standard_EXPORT Standard_Boolean | IsKind (const Handle(Standard_Type)&) const
Standard_EXPORT | WOKTclTools_Interpretor ()
Standard_EXPORT | WOKTclTools_Interpretor (const WOKTclTools_PInterp &anInterp)
Standard_EXPORT void | Add (const Standard_CString Command, const Standard_CString Help, const WOKTclTools_CommandFunction Function, const Standard_CString Group="User Commands")
Standard_EXPORT void | Add (const Standard_CString Command, const Standard_CString Help, const WOKTclTools_WokCommand Function, const Standard_CString Group="User Commands")
Standard_EXPORT void | AddExitHandler (const WOKTclTools_ExitHandler Function)
Standard_EXPORT void | DeleteExitHandler (const WOKTclTools_ExitHandler Function)
Standard_EXPORT Standard_Boolean | IsCmdName (const Standard_CString Command)
Standard_EXPORT Standard_Boolean | Remove (const Standard_CString Command)
Standard_EXPORT Standard_Integer | PkgProvide (const Standard_CString aname, const Standard_CString aversion)
Standard_EXPORT Standard_Integer | TreatReturn (const WOKTools_Return &values)
Standard_EXPORT Standard_CString | Result () const
Standard_EXPORT Standard_Boolean | GetReturnValues (WOKTools_Return &retval) const
Standard_EXPORT void | Reset ()
Standard_EXPORT void | Append (const Standard_CString Result)
Standard_EXPORT void | Append (const Standard_Integer Result)
Standard_EXPORT void | Append (const Standard_Real Result)
Standard_EXPORT void | AppendElement (Standard_CString Result)
Standard_EXPORT Standard_Integer | Eval (const Standard_CString Script)
Standard_EXPORT Standard_Integer | RecordAndEval (const Standard_CString Script, const Standard_Integer Flags=0)
Standard_EXPORT Standard_Integer | EvalFile (const Standard_CString FileName)
Standard_EXPORT void | Destroy ()
| ~WOKTclTools_Interpretor ()
Standard_EXPORT void | Set (const WOKTclTools_PInterp &anInterp)
Standard_EXPORT WOKTclTools_PInterp | Interp () const
Standard_EXPORT void | TreatMessage (const Standard_Boolean newline, const Standard_Character atype, const Standard_CString amsg) const
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const
Standard_EXPORT Standard_Boolean | IsKind (const Handle(Standard_Type)&) const

## Static Public Member Functions

static Standard_EXPORT Standard_Boolean | Complete (const Standard_CString Script)
static Standard_EXPORT Handle_WOKTclTools_Interpretor & | Current ()
static Standard_EXPORT void | SetEndMessageProc (const Standard_CString aproc)
static Standard_EXPORT void | UnSetEndMessageProc ()
static Standard_EXPORT Standard_CString & | EndMessageProc ()
static Standard_EXPORT void | SetEndMessageArgs (const Standard_CString aArgs)
static Standard_EXPORT void | UnSetEndMessageArgs ()
static Standard_EXPORT Standard_CString & | EndMessageArgs ()
static Standard_EXPORT Standard_Boolean | Complete (const Standard_CString Script)
static Standard_EXPORT Handle_WOKTclTools_Interpretor & | Current ()
static Standard_EXPORT void | SetEndMessageProc (const Standard_CString aproc)
static Standard_EXPORT void | UnSetEndMessageProc ()
static Standard_EXPORT Standard_CString & | EndMessageProc ()
static Standard_EXPORT void | SetEndMessageArgs (const Standard_CString aArgs)
static Standard_EXPORT void | UnSetEndMessageArgs ()
static Standard_EXPORT Standard_CString & | EndMessageArgs ()

## Private Attributes

Standard_Boolean | isAllocated
WOKTclTools_PInterp | myInterp

## Friends

Standard_EXPORT Handle_Standard_Type & | WOKTclTools_Interpretor_Type_ ()
Standard_EXPORT Handle_Standard_Type & | WOKTclTools_Interpretor_Type_ ()

## Constructor & Destructor Documentation

Standard_EXPORT WOKTclTools_Interpretor::WOKTclTools_Interpretor | ( |  | ) |

Standard_EXPORT WOKTclTools_Interpretor::WOKTclTools_Interpretor | ( | const WOKTclTools_PInterp & | anInterp | ) |

WOKTclTools_Interpretor::~WOKTclTools_Interpretor | ( |  | ) | `[inline]`

Standard_EXPORT WOKTclTools_Interpretor::WOKTclTools_Interpretor | ( |  | ) |

Standard_EXPORT WOKTclTools_Interpretor::WOKTclTools_Interpretor | ( | const WOKTclTools_PInterp & | anInterp | ) |

WOKTclTools_Interpretor::~WOKTclTools_Interpretor | ( |  | ) | `[inline]`

## Member Function Documentation

Standard_EXPORT void WOKTclTools_Interpretor::Add | ( | const Standard_CString | Command,
|  | const Standard_CString | Help,
|  | const WOKTclTools_WokCommand | Function,
|  | const Standard_CString | Group = `"User Commands"`
| ) |

Standard_EXPORT void WOKTclTools_Interpretor::Add | ( | const Standard_CString | Command,
|  | const Standard_CString | Help,
|  | const WOKTclTools_CommandFunction | Function,
|  | const Standard_CString | Group = `"User Commands"`
| ) |

Standard_EXPORT void WOKTclTools_Interpretor::Add | ( | const Standard_CString | Command,
|  | const Standard_CString | Help,
|  | const WOKTclTools_WokCommand | Function,
|  | const Standard_CString | Group = `"User Commands"`
| ) |

Standard_EXPORT void WOKTclTools_Interpretor::Add | ( | const Standard_CString | Command,
|  | const Standard_CString | Help,
|  | const WOKTclTools_CommandFunction | Function,
|  | const Standard_CString | Group = `"User Commands"`
| ) |

Standard_EXPORT void WOKTclTools_Interpretor::AddExitHandler | ( | const WOKTclTools_ExitHandler | Function | ) |

Standard_EXPORT void WOKTclTools_Interpretor::AddExitHandler | ( | const WOKTclTools_ExitHandler | Function | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Append | ( | const Standard_Real | Result | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Append | ( | const Standard_Integer | Result | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Append | ( | const Standard_CString | Result | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Append | ( | const Standard_Real | Result | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Append | ( | const Standard_Integer | Result | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Append | ( | const Standard_CString | Result | ) |

Standard_EXPORT void WOKTclTools_Interpretor::AppendElement | ( | Standard_CString | Result | ) |

Standard_EXPORT void WOKTclTools_Interpretor::AppendElement | ( | Standard_CString | Result | ) |

static Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::Complete | ( | const Standard_CString | Script | ) | `[static]`

static Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::Complete | ( | const Standard_CString | Script | ) | `[static]`

static Standard_EXPORT Handle_WOKTclTools_Interpretor& WOKTclTools_Interpretor::Current | ( |  | ) | `[static]`

static Standard_EXPORT Handle_WOKTclTools_Interpretor& WOKTclTools_Interpretor::Current | ( |  | ) | `[static]`

Standard_EXPORT void WOKTclTools_Interpretor::DeleteExitHandler | ( | const WOKTclTools_ExitHandler | Function | ) |

Standard_EXPORT void WOKTclTools_Interpretor::DeleteExitHandler | ( | const WOKTclTools_ExitHandler | Function | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Destroy | ( |  | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Destroy | ( |  | ) |

static Standard_EXPORT Standard_CString& WOKTclTools_Interpretor::EndMessageArgs | ( |  | ) | `[static]`

static Standard_EXPORT Standard_CString& WOKTclTools_Interpretor::EndMessageArgs | ( |  | ) | `[static]`

static Standard_EXPORT Standard_CString& WOKTclTools_Interpretor::EndMessageProc | ( |  | ) | `[static]`

static Standard_EXPORT Standard_CString& WOKTclTools_Interpretor::EndMessageProc | ( |  | ) | `[static]`

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::Eval | ( | const Standard_CString | Script | ) |

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::Eval | ( | const Standard_CString | Script | ) |

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::EvalFile | ( | const Standard_CString | FileName | ) |

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::EvalFile | ( | const Standard_CString | FileName | ) |

Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::GetReturnValues | ( | WOKTools_Return & | retval | ) | const

Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::GetReturnValues | ( | WOKTools_Return & | retval | ) | const

Standard_EXPORT const WOKTclTools_Interpretor::Handle | ( | Standard_Type |  | ) | const

| Reimplemented in WOKTCL_Interpretor.

Standard_EXPORT const WOKTclTools_Interpretor::Handle | ( | Standard_Type |  | ) | const

| Reimplemented in WOKTCL_Interpretor.

Standard_EXPORT WOKTclTools_PInterp WOKTclTools_Interpretor::Interp | ( |  | ) | const

Standard_EXPORT WOKTclTools_PInterp WOKTclTools_Interpretor::Interp | ( |  | ) | const

Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::IsCmdName | ( | const Standard_CString | Command | ) |

Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::IsCmdName | ( | const Standard_CString | Command | ) |

Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::IsKind | ( | const Handle(Standard_Type)& |  | ) | const

Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::IsKind | ( | const Handle(Standard_Type)& |  | ) | const

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::PkgProvide | ( | const Standard_CString | aname,
|  | const Standard_CString | aversion
| ) |

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::PkgProvide | ( | const Standard_CString | aname,
|  | const Standard_CString | aversion
| ) |

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::RecordAndEval | ( | const Standard_CString | Script,
|  | const Standard_Integer | Flags = `0`
| ) |

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::RecordAndEval | ( | const Standard_CString | Script,
|  | const Standard_Integer | Flags = `0`
| ) |

Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::Remove | ( | const Standard_CString | Command | ) |

Standard_EXPORT Standard_Boolean WOKTclTools_Interpretor::Remove | ( | const Standard_CString | Command | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Reset | ( |  | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Reset | ( |  | ) |

Standard_EXPORT Standard_CString WOKTclTools_Interpretor::Result | ( |  | ) | const

Standard_EXPORT Standard_CString WOKTclTools_Interpretor::Result | ( |  | ) | const

Standard_EXPORT void WOKTclTools_Interpretor::Set | ( | const WOKTclTools_PInterp & | anInterp | ) |

Standard_EXPORT void WOKTclTools_Interpretor::Set | ( | const WOKTclTools_PInterp & | anInterp | ) |

static Standard_EXPORT void WOKTclTools_Interpretor::SetEndMessageArgs | ( | const Standard_CString | aArgs | ) | `[static]`

static Standard_EXPORT void WOKTclTools_Interpretor::SetEndMessageArgs | ( | const Standard_CString | aArgs | ) | `[static]`

static Standard_EXPORT void WOKTclTools_Interpretor::SetEndMessageProc | ( | const Standard_CString | aproc | ) | `[static]`

static Standard_EXPORT void WOKTclTools_Interpretor::SetEndMessageProc | ( | const Standard_CString | aproc | ) | `[static]`

Standard_EXPORT void WOKTclTools_Interpretor::TreatMessage | ( | const Standard_Boolean | newline,
|  | const Standard_Character | atype,
|  | const Standard_CString | amsg
| ) | const

Standard_EXPORT void WOKTclTools_Interpretor::TreatMessage | ( | const Standard_Boolean | newline,
|  | const Standard_Character | atype,
|  | const Standard_CString | amsg
| ) | const

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::TreatReturn | ( | const WOKTools_Return & | values | ) |

Standard_EXPORT Standard_Integer WOKTclTools_Interpretor::TreatReturn | ( | const WOKTools_Return & | values | ) |

static Standard_EXPORT void WOKTclTools_Interpretor::UnSetEndMessageArgs | ( |  | ) | `[static]`

static Standard_EXPORT void WOKTclTools_Interpretor::UnSetEndMessageArgs | ( |  | ) | `[static]`

static Standard_EXPORT void WOKTclTools_Interpretor::UnSetEndMessageProc | ( |  | ) | `[static]`

static Standard_EXPORT void WOKTclTools_Interpretor::UnSetEndMessageProc | ( |  | ) | `[static]`

## Friends And Related Function Documentation

Standard_EXPORT Handle_Standard_Type& WOKTclTools_Interpretor_Type_ | ( |  | ) | `[friend]`

Standard_EXPORT Handle_Standard_Type& WOKTclTools_Interpretor_Type_ | ( |  | ) | `[friend]`

## Field Documentation

Standard_Boolean WOKTclTools_Interpretor::isAllocated `[private]`

WOKTclTools_PInterp WOKTclTools_Interpretor::myInterp `[private]`

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

- WOKTclTools_Interpretor.hxx
- WOKTclTools_Interpretor_proto.hxx