mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument
The argument putEndl has been removed from Message_Messenger::Send() and Message_Printer::Send() methods. Message_Printer interface has been changed, so that sub-classes have to implement new method Message_Printer::send() accepting TCollection_AsciiString. Old three Message_Printer::Send() methods remain available without putEndl argument and redirecting to new send() method by default. Removed dummy Message_PrinterOStream::GetUseUtf8() property. Message_PrinterOStream, Message_PrinterSystemLog and Draw_Printer now implement single method Message_Printer::send() instead of triplet.
This commit is contained in:
@@ -122,29 +122,29 @@ void ShapeProcessAPI_ApplySequence::PrintPreparationResult () const
|
||||
|
||||
// mapping
|
||||
Message_Msg EPMSG100 ("PrResult.Print.MSG100"); //Mapping:
|
||||
aMessenger->Send (EPMSG100, Message_Info, Standard_True);
|
||||
aMessenger->Send (EPMSG100, Message_Info);
|
||||
Message_Msg TPMSG50 ("PrResult.Print.MSG50"); // Shells:
|
||||
aMessenger->Send (TPMSG50, Message_Info, Standard_True);
|
||||
aMessenger->Send (TPMSG50, Message_Info);
|
||||
Message_Msg EPMSG110 ("PrResult.Print.MSG110"); // Result is Shell : %d
|
||||
EPMSG110.Arg (SS);
|
||||
aMessenger->Send (EPMSG110, Message_Info, Standard_True);
|
||||
aMessenger->Send (EPMSG110, Message_Info);
|
||||
Message_Msg EPMSG150 ("PrResult.Print.MSG150"); // No Result : %d
|
||||
EPMSG150.Arg (SN);
|
||||
aMessenger->Send (EPMSG150, Message_Info, Standard_True);
|
||||
aMessenger->Send (EPMSG150, Message_Info);
|
||||
|
||||
TCollection_AsciiString tmp110 (EPMSG110.Original()), tmp150 (EPMSG150.Original());
|
||||
EPMSG110.Set (tmp110.ToCString());
|
||||
EPMSG150.Set (tmp150.ToCString());
|
||||
|
||||
Message_Msg TPMSG55 ("PrResult.Print.MSG55"); // Faces:
|
||||
aMessenger->Send (TPMSG55, Message_Info, Standard_True);
|
||||
aMessenger->Send (TPMSG55, Message_Info);
|
||||
Message_Msg EPMSG115 ("PrResult.Print.MSG115"); // Result is Face : %d
|
||||
EPMSG115.Arg (FF);
|
||||
aMessenger->Send (EPMSG115, Message_Info, Standard_True);
|
||||
aMessenger->Send (EPMSG115, Message_Info);
|
||||
EPMSG110.Arg (FS);
|
||||
aMessenger->Send (EPMSG110, Message_Info, Standard_True);
|
||||
aMessenger->Send (EPMSG110, Message_Info);
|
||||
EPMSG150.Arg (FN);
|
||||
aMessenger->Send (EPMSG150, Message_Info, Standard_True);
|
||||
aMessenger->Send (EPMSG150, Message_Info);
|
||||
|
||||
// preparation ratio
|
||||
Standard_Real SPR = 1, FPR = 1;
|
||||
@@ -153,12 +153,12 @@ void ShapeProcessAPI_ApplySequence::PrintPreparationResult () const
|
||||
if (NbS > 0) SPR = 1. * (NbS - SN) / NbS;
|
||||
if (NbF > 0) FPR = 1. * (NbF - FN) / NbF;
|
||||
Message_Msg PMSG200 ("PrResult.Print.MSG200"); //Preparation ratio:
|
||||
aMessenger->Send (PMSG200, Message_Info, Standard_True);
|
||||
aMessenger->Send (PMSG200, Message_Info);
|
||||
Message_Msg PMSG205 ("PrResult.Print.MSG205"); // Shells: %d per cent
|
||||
PMSG205.Arg ((Standard_Integer) (100 * SPR));
|
||||
aMessenger->Send (PMSG205, Message_Info, Standard_True);
|
||||
aMessenger->Send (PMSG205, Message_Info);
|
||||
Message_Msg PMSG210 ("PrResult.Print.MSG210"); // Faces : %d per cent
|
||||
PMSG210.Arg ((Standard_Integer) (100 * FPR));
|
||||
aMessenger->Send (PMSG210, Message_Info, Standard_True);
|
||||
aMessenger->Send (PMSG210, Message_Info);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user