From e56906935b9da88bd0d0e2ed4afe69766aa0edc9 Mon Sep 17 00:00:00 2001 From: abk Date: Fri, 15 Nov 2019 12:02:10 +0300 Subject: [PATCH] 0031165: Correct certain Draw commands to use the Draw interpreter instead of "std::cout" The commands were corrected. --- src/DDataStd/DDataStd_BasicCommands.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/DDataStd/DDataStd_BasicCommands.cxx b/src/DDataStd/DDataStd_BasicCommands.cxx index 9e24dd1f0c..0580f9812d 100644 --- a/src/DDataStd/DDataStd_BasicCommands.cxx +++ b/src/DDataStd/DDataStd_BasicCommands.cxx @@ -3438,7 +3438,10 @@ static Standard_Integer DDataStd_GetNDInteger (Draw_Interpretor& di, std::cout << "There is no data specified by Key = "<< arg[3] << std::endl; return 1; } else { - std::cout << "Key = " << arg[3] << " Value = " <GetInteger(arg[3])<GetInteger(arg[3])); return 0; @@ -3546,7 +3549,10 @@ static Standard_Integer DDataStd_GetNDReal (Draw_Interpretor& di, std::cout << "There is no data specified by Key = "<< arg[3] << std::endl; return 1; } else { - std::cout << "Key = " << arg[3] << " Value = " <GetReal(arg[3])<GetReal(arg[3])); return 0; @@ -3656,7 +3662,10 @@ static Standard_Integer DDataStd_GetNDString (Draw_Interpretor& di, return 1; } else { TCollection_AsciiString aValue (anAtt->GetString(arg[3]), '?'); - std::cout << "Key = " << arg[3] << " Value = " << aValue.ToCString() << std::endl; + TCollection_AsciiString aString = + (((TCollection_AsciiString("Key = ") + arg[3]) + + " Value = ") + aValue.ToCString()) + "\n"; + di << aString; if(nb == 5) Draw::Set(arg[4], aValue.ToCString()); return 0; -- 2.39.5