|
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_Interpretor & | Append (const Standard_CString Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (const Standard_CString Result) |
Standard_EXPORT Draw_Interpretor & | Append (const TCollection_AsciiString &Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (const TCollection_AsciiString &Result) |
Standard_EXPORT Draw_Interpretor & | Append (const TCollection_ExtendedString &Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (const TCollection_ExtendedString &Result) |
Standard_EXPORT Draw_Interpretor & | Append (const Standard_Integer Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (const Standard_Integer Result) |
Standard_EXPORT Draw_Interpretor & | Append (const Standard_Real Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (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_Interpretor & | Append (const Standard_CString Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (const Standard_CString Result) |
Standard_EXPORT Draw_Interpretor & | Append (const TCollection_AsciiString &Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (const TCollection_AsciiString &Result) |
Standard_EXPORT Draw_Interpretor & | Append (const TCollection_ExtendedString &Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (const TCollection_ExtendedString &Result) |
Standard_EXPORT Draw_Interpretor & | Append (const Standard_Integer Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (const Standard_Integer Result) |
Standard_EXPORT Draw_Interpretor & | Append (const Standard_Real Result) |
| Appends to the result
.
|
Draw_Interpretor & | operator<< (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 |