1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Compare commits

...

1 Commits

Author SHA1 Message Date
abk
e56906935b 0031165: Correct certain Draw commands to use the Draw interpreter instead of "std::cout"
The commands were corrected.
2019-11-15 12:11:57 +03:00

View File

@@ -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 = " <<anAtt->GetInteger(arg[3])<<std::endl;
TCollection_AsciiString aString =
(((TCollection_AsciiString("Key = ") + arg[3]) +
" Value = ") + anAtt->GetInteger(arg[3])) + "\n";
di << aString;
if(nb == 5)
Draw::Set(arg[4], anAtt->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 = " <<anAtt->GetReal(arg[3])<<std::endl;
TCollection_AsciiString aString =
(((TCollection_AsciiString("Key = ") + arg[3]) +
" Value = ") + anAtt->GetReal(arg[3])) + "\n";
di << aString;
if(nb == 5)
Draw::Set(arg[4], anAtt->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;