]> OCCT Git - occt-copy.git/commit
0029451: Information Message Alert to debug an algorithm or object functionality
authornds <nds@opencascade.com>
Fri, 2 Oct 2020 11:17:59 +0000 (14:17 +0300)
committernds <nds@opencascade.com>
Thu, 12 Nov 2020 08:39:31 +0000 (11:39 +0300)
commit8d82f8d571622049ffdefe348e828d7f6469d3a9
tree8994eb9717c831343c1aef7359c77c0c5ab2cce8
parent157ba236509ca28aaed3eca18dedb72186ff1191
0029451: Information Message Alert to debug an algorithm or object functionality

- Added possibility to send stream information and transient object into Message_Messenger. Message_Printer will process it if needed.
- Add Message_PrinterToReport to send messenger information into Message_Report.
- Extended Message_Report to collect hierarchical alerts, to be able to collect some metrics during alerts processing.
- Added Message_AlertExtended to prepare hierarchical alerts with custom attributes. One attribute for one alert.
- Added Message_CompositeAlerts class to handle a container of alerts.
- Added Message_Level to start a new hierarchical level by creating an instance, stop by destricting.
- Added Message_Attribute and inheritors to store custom information about alert like object, stream, shape, some metrics.
- Implement Message_AttributeAlert to collect start/stop information about active metrics of Message_Report. This kind of attribute is created if at least one metric is active in the report.
- Add Message_MetricType enumeration with possible kinds of metrics in report.
- Implement DumpJson for Message_Report to store all collected alerts into stream.
- Added draw commands for Message_Report, Message_Messenger.

(cherry picked from commit 6522304c17181a09fa831c040219d611dc44b94a)
(cherry picked from commit c87a9c878487ecd89d3b9866de03dde44b956328)
(cherry picked from commit cf35edd25d5857a039be98a161091670a5424bb1)
(cherry picked from commit 085c77f62fcd9f172f855cba78cc3cf0e9a9762d)
38 files changed:
src/Draw/Draw.cxx
src/Draw/Draw.hxx
src/Draw/Draw_Commands.cxx
src/Draw/Draw_MessageCommands.cxx [new file with mode: 0644]
src/Draw/FILES
src/Message/FILES
src/Message/Message.cxx
src/Message/Message.hxx
src/Message/Message_Alert.cxx
src/Message/Message_Alert.hxx
src/Message/Message_AlertExtended.cxx [new file with mode: 0644]
src/Message/Message_AlertExtended.hxx [new file with mode: 0644]
src/Message/Message_Attribute.cxx [new file with mode: 0644]
src/Message/Message_Attribute.hxx [new file with mode: 0644]
src/Message/Message_AttributeMeter.cxx [new file with mode: 0644]
src/Message/Message_AttributeMeter.hxx [new file with mode: 0644]
src/Message/Message_AttributeObject.cxx [new file with mode: 0644]
src/Message/Message_AttributeObject.hxx [new file with mode: 0644]
src/Message/Message_AttributeStream.cxx [new file with mode: 0644]
src/Message/Message_AttributeStream.hxx [new file with mode: 0644]
src/Message/Message_CompositeAlerts.cxx [new file with mode: 0644]
src/Message/Message_CompositeAlerts.hxx [new file with mode: 0644]
src/Message/Message_Level.cxx [new file with mode: 0644]
src/Message/Message_Level.hxx [new file with mode: 0644]
src/Message/Message_Messenger.cxx
src/Message/Message_Messenger.hxx
src/Message/Message_MetricType.hxx [new file with mode: 0644]
src/Message/Message_Printer.cxx
src/Message/Message_Printer.hxx
src/Message/Message_PrinterToReport.cxx [new file with mode: 0644]
src/Message/Message_PrinterToReport.hxx [new file with mode: 0644]
src/Message/Message_Report.cxx
src/Message/Message_Report.hxx
src/Standard/Standard_Dump.hxx
src/TopoDS/FILES
src/TopoDS/TopoDS_AlertAttribute.cxx [new file with mode: 0644]
src/TopoDS/TopoDS_AlertAttribute.hxx [new file with mode: 0644]
tests/demo/draw/messenger [new file with mode: 0644]