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:
@@ -48,27 +48,11 @@ OcctJni_MsgPrinter::~OcctJni_MsgPrinter()
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Send
|
||||
// function : send
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void OcctJni_MsgPrinter::Send (const TCollection_ExtendedString& theString,
|
||||
const Message_Gravity theGravity,
|
||||
const Standard_Boolean theToPutEndl) const
|
||||
{
|
||||
if (theGravity >= myTraceLevel)
|
||||
{
|
||||
const TCollection_AsciiString aStr (theString);
|
||||
OcctJni_MsgPrinter::Send (aStr, theGravity, theToPutEndl);
|
||||
}
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Send
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void OcctJni_MsgPrinter::Send (const TCollection_AsciiString& theString,
|
||||
const Message_Gravity theGravity,
|
||||
const Standard_Boolean theToPutEndl) const
|
||||
void OcctJni_MsgPrinter::send (const TCollection_AsciiString& theString,
|
||||
const Message_Gravity theGravity) const
|
||||
{
|
||||
if (theGravity < myTraceLevel)
|
||||
{
|
||||
@@ -85,17 +69,3 @@ void OcctJni_MsgPrinter::Send (const TCollection_AsciiString& theString,
|
||||
myJEnv->CallObjectMethod (myJObj, myJMet, aJStr);
|
||||
myJEnv->DeleteLocalRef (aJStr);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Send
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void OcctJni_MsgPrinter::Send (const Standard_CString& theString,
|
||||
const Message_Gravity theGravity,
|
||||
const Standard_Boolean theToPutEndl) const
|
||||
{
|
||||
if (theGravity >= myTraceLevel)
|
||||
{
|
||||
OcctJni_MsgPrinter::Send (TCollection_AsciiString (theString), theGravity, theToPutEndl);
|
||||
}
|
||||
}
|
||||
|
@@ -30,20 +30,11 @@ public:
|
||||
//! Destructor.
|
||||
~OcctJni_MsgPrinter();
|
||||
|
||||
//! Redirection to TCollection_AsciiString method
|
||||
virtual void Send (const TCollection_ExtendedString& theString,
|
||||
const Message_Gravity theGravity,
|
||||
const Standard_Boolean theToPutEndl) const;
|
||||
|
||||
//! Redirection to TCollection_AsciiString method
|
||||
virtual void Send (const Standard_CString& theString,
|
||||
const Message_Gravity theGravity,
|
||||
const Standard_Boolean theToPutEndl) const;
|
||||
protected:
|
||||
|
||||
//! Main printing method
|
||||
virtual void Send (const TCollection_AsciiString& theString,
|
||||
const Message_Gravity theGravity,
|
||||
const Standard_Boolean theToPutEndl) const;
|
||||
virtual void send (const TCollection_AsciiString& theString,
|
||||
const Message_Gravity theGravity) const;
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user