0023152: Possibility to have echo of DRAW commands in log file
authorabv <abv@opencascade.com>
Thu, 28 Jun 2012 13:46:43 +0000 (17:46 +0400)
committerabv <abv@opencascade.com>
Thu, 28 Jun 2012 13:46:43 +0000 (17:46 +0400)
commitaa02980dbf96fbe3770146aeeee1fb3d4cd53acb
treed71a449fa17a8bb352120adf65ec8c63a23971c2
parent1d03e66d2a13de491a1ec492b0fcec5f94100e88
0023152: Possibility to have echo of DRAW commands in log file

Two commands are added in DRAW:

decho: allows switch on/off echo of commands and their results. When echo is on, all commands implemented as OCCT DRAW C procedures will be echoed to standard output, along with their result. This can be useful to trace process of execution of script evaluated by 'source' command.

dlog: implements off-screen log for recording DRAW commands and their output for further processing in Tcl script (mainly for use in automatic tests). Run this command without arguments to get help.
Added ios::sync_with_stdio() call to Draw::BasicCommands.
Correction for compilation on Linux
src/Draw/Draw_BasicCommands.cxx
src/Draw/Draw_Interpretor.cdl
src/Draw/Draw_Interpretor.cxx