OCC Main Page | Draw | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Draw
TKDraw
Draw


Draw_Interpretor Class Reference

Provides an encapsulation of the TCL interpretor
to define Draw commands.
.

#include <Draw_Interpretor_proto.hxx>


Public Member Functions

Standard_EXPORT Draw_Interpretor ()
Standard_EXPORT void Init ()
Standard_EXPORT void Add (const Standard_CString Command, const Standard_CString Help, const Draw_CommandFunction Function, const Standard_CString Group="User Commands")
 Creates a new command with name <command>, help
string <help> in group <group>.
<function> implement the function.
.
Standard_EXPORT void Add (const Standard_CString Command, const Standard_CString Help, const Standard_CString FileName, const Draw_CommandFunction Function, const Standard_CString Group="User Commands")
 Creates a new command with name <command>, help
string <help> in group <group>. <function>
implement the function.
<filename> is the name of the file that contains
the implementation of the command
.
Standard_EXPORT Standard_Boolean Remove (const Standard_CString Command)
 Removes <command>, returns true if success (the
command existed).
.
Standard_EXPORT Standard_CString Result () const
Standard_EXPORT void Reset ()
 Resets the result to empty string
.
Standard_EXPORT Draw_InterpretorAppend (const Standard_CString Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const Standard_CString Result)
Standard_EXPORT Draw_InterpretorAppend (const TCollection_AsciiString &Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const TCollection_AsciiString &Result)
Standard_EXPORT Draw_InterpretorAppend (const TCollection_ExtendedString &Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const TCollection_ExtendedString &Result)
Standard_EXPORT Draw_InterpretorAppend (const Standard_Integer Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const Standard_Integer Result)
Standard_EXPORT Draw_InterpretorAppend (const Standard_Real Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const Standard_Real Result)
Standard_EXPORT void AppendElement (Standard_CString Result)
 Appends to the result the string as a list element
.
Standard_EXPORT Standard_Integer Eval (const Standard_CString Script)
 Eval the script and returns OK = 0, ERROR = 1
.
Standard_EXPORT Standard_Integer RecordAndEval (const Standard_CString Script, const Standard_Integer Flags=0)
 Eval the script and returns OK = 0, ERROR = 1
Store the script in the history record.
.
Standard_EXPORT Standard_Integer EvalFile (const Standard_CString FileName)
 Eval the content on the file and returns status
.
Standard_EXPORT void Destroy ()
 ~Draw_Interpretor ()
Standard_EXPORT Draw_Interpretor (const Draw_PInterp &anInterp)
Standard_EXPORT void Set (const Draw_PInterp &anInterp)
Standard_EXPORT Draw_PInterp Interp () const
Standard_EXPORT Draw_Interpretor ()
Standard_EXPORT void Init ()
Standard_EXPORT void Add (const Standard_CString Command, const Standard_CString Help, const Draw_CommandFunction Function, const Standard_CString Group="User Commands")
 Creates a new command with name <command>, help
string <help> in group <group>.
<function> implement the function.
.
Standard_EXPORT void Add (const Standard_CString Command, const Standard_CString Help, const Standard_CString FileName, const Draw_CommandFunction Function, const Standard_CString Group="User Commands")
 Creates a new command with name <command>, help
string <help> in group <group>. <function>
implement the function.
<filename> is the name of the file that contains
the implementation of the command
.
Standard_EXPORT Standard_Boolean Remove (const Standard_CString Command)
 Removes <command>, returns true if success (the
command existed).
.
Standard_EXPORT Standard_CString Result () const
Standard_EXPORT void Reset ()
 Resets the result to empty string
.
Standard_EXPORT Draw_InterpretorAppend (const Standard_CString Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const Standard_CString Result)
Standard_EXPORT Draw_InterpretorAppend (const TCollection_AsciiString &Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const TCollection_AsciiString &Result)
Standard_EXPORT Draw_InterpretorAppend (const TCollection_ExtendedString &Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const TCollection_ExtendedString &Result)
Standard_EXPORT Draw_InterpretorAppend (const Standard_Integer Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const Standard_Integer Result)
Standard_EXPORT Draw_InterpretorAppend (const Standard_Real Result)
 Appends to the result
.
Draw_Interpretoroperator<< (const Standard_Real Result)
Standard_EXPORT void AppendElement (Standard_CString Result)
 Appends to the result the string as a list element
.
Standard_EXPORT Standard_Integer Eval (const Standard_CString Script)
 Eval the script and returns OK = 0, ERROR = 1
.
Standard_EXPORT Standard_Integer RecordAndEval (const Standard_CString Script, const Standard_Integer Flags=0)
 Eval the script and returns OK = 0, ERROR = 1
Store the script in the history record.
.
Standard_EXPORT Standard_Integer EvalFile (const Standard_CString FileName)
 Eval the content on the file and returns status
.
Standard_EXPORT void Destroy ()
 ~Draw_Interpretor ()
Standard_EXPORT Draw_Interpretor (const Draw_PInterp &anInterp)
Standard_EXPORT void Set (const Draw_PInterp &anInterp)
Standard_EXPORT Draw_PInterp Interp () const

Static Public Member Functions

static Standard_EXPORT Standard_Boolean Complete (const Standard_CString Script)
 Returns True if the script is complete, no pending
closing braces. (})
.
static Standard_EXPORT Standard_Boolean Complete (const Standard_CString Script)
 Returns True if the script is complete, no pending
closing braces. (})
.

Private Attributes

Standard_Boolean isAllocated
Draw_PInterp myInterp


Constructor & Destructor Documentation

Standard_EXPORT Draw_Interpretor::Draw_Interpretor  ) 
 

Draw_Interpretor::~Draw_Interpretor  )  [inline]
 

Standard_EXPORT Draw_Interpretor::Draw_Interpretor const Draw_PInterp anInterp  ) 
 

Standard_EXPORT Draw_Interpretor::Draw_Interpretor  ) 
 

Draw_Interpretor::~Draw_Interpretor  )  [inline]
 

Standard_EXPORT Draw_Interpretor::Draw_Interpretor const Draw_PInterp anInterp  ) 
 


Member Function Documentation

Standard_EXPORT void Draw_Interpretor::Add const Standard_CString  Command,
const Standard_CString  Help,
const Standard_CString  FileName,
const Draw_CommandFunction  Function,
const Standard_CString  Group = "User Commands"
 

Standard_EXPORT void Draw_Interpretor::Add const Standard_CString  Command,
const Standard_CString  Help,
const Draw_CommandFunction  Function,
const Standard_CString  Group = "User Commands"
 

Standard_EXPORT void Draw_Interpretor::Add const Standard_CString  Command,
const Standard_CString  Help,
const Standard_CString  FileName,
const Draw_CommandFunction  Function,
const Standard_CString  Group = "User Commands"
 

Standard_EXPORT void Draw_Interpretor::Add const Standard_CString  Command,
const Standard_CString  Help,
const Draw_CommandFunction  Function,
const Standard_CString  Group = "User Commands"
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const Standard_Real  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const Standard_Integer  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const TCollection_ExtendedString &  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const TCollection_AsciiString &  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const Standard_CString  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const Standard_Real  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const Standard_Integer  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const TCollection_ExtendedString &  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const TCollection_AsciiString &  Result  ) 
 

Standard_EXPORT Draw_Interpretor& Draw_Interpretor::Append const Standard_CString  Result  ) 
 

Standard_EXPORT void Draw_Interpretor::AppendElement Standard_CString  Result  ) 
 

Standard_EXPORT void Draw_Interpretor::AppendElement Standard_CString  Result  ) 
 

static Standard_EXPORT Standard_Boolean Draw_Interpretor::Complete const Standard_CString  Script  )  [static]
 

static Standard_EXPORT Standard_Boolean Draw_Interpretor::Complete const Standard_CString  Script  )  [static]
 

Standard_EXPORT void Draw_Interpretor::Destroy  ) 
 

Standard_EXPORT void Draw_Interpretor::Destroy  ) 
 

Standard_EXPORT Standard_Integer Draw_Interpretor::Eval const Standard_CString  Script  ) 
 

Standard_EXPORT Standard_Integer Draw_Interpretor::Eval const Standard_CString  Script  ) 
 

Standard_EXPORT Standard_Integer Draw_Interpretor::EvalFile const Standard_CString  FileName  ) 
 

Standard_EXPORT Standard_Integer Draw_Interpretor::EvalFile const Standard_CString  FileName  ) 
 

Standard_EXPORT void Draw_Interpretor::Init  ) 
 

Standard_EXPORT void Draw_Interpretor::Init  ) 
 

Standard_EXPORT Draw_PInterp Draw_Interpretor::Interp  )  const
 

Standard_EXPORT Draw_PInterp Draw_Interpretor::Interp  )  const
 

Draw_Interpretor& Draw_Interpretor::operator<< const Standard_Real  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const Standard_Integer  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const TCollection_ExtendedString &  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const TCollection_AsciiString &  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const Standard_CString  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const Standard_Real  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const Standard_Integer  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const TCollection_ExtendedString &  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const TCollection_AsciiString &  Result  )  [inline]
 

Draw_Interpretor& Draw_Interpretor::operator<< const Standard_CString  Result  )  [inline]
 

Standard_EXPORT Standard_Integer Draw_Interpretor::RecordAndEval const Standard_CString  Script,
const Standard_Integer  Flags = 0
 

Standard_EXPORT Standard_Integer Draw_Interpretor::RecordAndEval const Standard_CString  Script,
const Standard_Integer  Flags = 0
 

Standard_EXPORT Standard_Boolean Draw_Interpretor::Remove const Standard_CString  Command  ) 
 

Standard_EXPORT Standard_Boolean Draw_Interpretor::Remove const Standard_CString  Command  ) 
 

Standard_EXPORT void Draw_Interpretor::Reset  ) 
 

Standard_EXPORT void Draw_Interpretor::Reset  ) 
 

Standard_EXPORT Standard_CString Draw_Interpretor::Result  )  const
 

Standard_EXPORT Standard_CString Draw_Interpretor::Result  )  const
 

Standard_EXPORT void Draw_Interpretor::Set const Draw_PInterp anInterp  ) 
 

Standard_EXPORT void Draw_Interpretor::Set const Draw_PInterp anInterp  ) 
 


Field Documentation

Standard_Boolean Draw_Interpretor::isAllocated [private]
 

Draw_PInterp Draw_Interpretor::myInterp [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 14:51:09 2008 for OpenCASCADE by  doxygen 1.4.1