mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-15 04:04:07 +08:00
0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument -- preparation
Operators << for Handle(Message_Messenger) are removed; their use is replaced by use of Message_Messenger::StreamBuffer Message_Messenger has been replaced by Standard_OStream within Interface_InterfaceModel,IFSelect,IGES,STEP dump interfaces.
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
#include <Interface_Protocol.hxx>
|
||||
#include <Interface_ReportEntity.hxx>
|
||||
#include <Interface_SignType.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
@@ -916,18 +915,18 @@ void Interface_InterfaceModel::VerifyCheck (Handle(Interface_Check)& /*ach*/) co
|
||||
//=======================================================================
|
||||
|
||||
void Interface_InterfaceModel::Print(const Handle(Standard_Transient)& ent,
|
||||
const Handle(Message_Messenger)& S,
|
||||
Standard_OStream& S,
|
||||
const Standard_Integer mode) const
|
||||
{
|
||||
if (ent.IsNull()) { S<<"NULL"; return; }
|
||||
if (ent.IsNull()) { S << "NULL" ; return; }
|
||||
Standard_Integer num = Number(ent);
|
||||
if (mode <= 0) S<<num;
|
||||
if (mode == 0) S<<":";
|
||||
if (mode <= 0) S <<num;
|
||||
if (mode == 0) S <<":";
|
||||
if (mode >= 0) {
|
||||
if (num > 0)
|
||||
PrintToLog(ent,S);
|
||||
// PrintLabel (ent,S);
|
||||
else S<<"??";
|
||||
else S <<"??";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -938,7 +937,7 @@ void Interface_InterfaceModel::Print(const Handle(Standard_Transient)& ent,
|
||||
//=======================================================================
|
||||
|
||||
void Interface_InterfaceModel::PrintToLog(const Handle(Standard_Transient)& ent,
|
||||
const Handle(Message_Messenger)& S) const
|
||||
Standard_OStream& S) const
|
||||
{
|
||||
PrintLabel (ent,S);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user