From 99ca2eec6ba136c38e956a1a26c3e822d1ec30b1 Mon Sep 17 00:00:00 2001 From: abv Date: Thu, 17 Sep 2020 08:45:51 +0300 Subject: [PATCH] 0031595: Foundation Classes - make methods Message_Report::SendMessages() virtual --- src/Message/Message_Report.cxx | 4 ++-- src/Message/Message_Report.hxx | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Message/Message_Report.cxx b/src/Message/Message_Report.cxx index 07324599d2..ce3708ce51 100644 --- a/src/Message/Message_Report.cxx +++ b/src/Message/Message_Report.cxx @@ -189,7 +189,7 @@ void Message_Report::Dump (Standard_OStream& theOS, Message_Gravity theGravity) } //======================================================================= -//function : Dump +//function : SendMessages //purpose : //======================================================================= @@ -202,7 +202,7 @@ void Message_Report::SendMessages (const Handle(Message_Messenger)& theMessenger } //======================================================================= -//function : Dump +//function : SendMessages //purpose : //======================================================================= diff --git a/src/Message/Message_Report.hxx b/src/Message/Message_Report.hxx index 8440ba8149..beddf143a1 100644 --- a/src/Message/Message_Report.hxx +++ b/src/Message/Message_Report.hxx @@ -82,11 +82,14 @@ public: //! Dumps collected alerts with specified gravity to stream Standard_EXPORT void Dump (Standard_OStream& theOS, Message_Gravity theGravity); - //! Sends all collected alerts to messenger - Standard_EXPORT void SendMessages (const Handle(Message_Messenger)& theMessenger); + //! Sends all collected alerts to messenger. + Standard_EXPORT virtual void SendMessages (const Handle(Message_Messenger)& theMessenger); - //! Dumps collected alerts with specified gravity to messenger - Standard_EXPORT void SendMessages (const Handle(Message_Messenger)& theMessenger, Message_Gravity theGravity); + //! Dumps collected alerts with specified gravity to messenger. + //! Default implementation creates Message_Msg object with a message + //! key returned by alert, and sends it in the messenger. + Standard_EXPORT virtual void SendMessages (const Handle(Message_Messenger)& theMessenger, + Message_Gravity theGravity); //! Merges data from theOther report into this Standard_EXPORT void Merge (const Handle(Message_Report)& theOther);