]> OCCT Git - occt-copy.git/commit
0031945: Foundation Classes - unique names of alerts of message report in DumpJson
authornds <nds@opencascade.com>
Fri, 18 Dec 2020 10:09:08 +0000 (13:09 +0300)
committernds <nds@opencascade.com>
Thu, 29 Apr 2021 06:55:06 +0000 (09:55 +0300)
commit91fa0809c164a19c24b95b4fdeffce461beddefe
tree379b7395f6f8e246ee61c82fdecb649fa1db54cf
parentad0630bd805c329b190f31437c6d0820c3d8b63e
0031945: Foundation Classes - unique names of alerts of message report in DumpJson

- add OCCT_DUMP_FIELD_VALUE_NUMERICAL_INC and OCCT_DUMP_FIELD_VALUES_DUMPED_INC - to increment key Value;
- add OCCT_DUMP_STREAM_VALUE_DUMPED - to give stream as a parameter of the DumpJson;
- correct Message_Report, Message_CompositeAlerts to increment keys;
- correct Message_AttributeMeter to have in result start and stop values united in value block: [start stop]. It's better for parsing;
- correct result of Message::MetricToString output for updated in 29451 Message_MetricType enum;
- correct Standard_Dump::AddValuesSeparator to avoid adding ',' in additional case;
- correct Standard_Dump::FormatJson to add opening/closing brace for the whole result (for valid parsing);
- correct Standard_Dump::FormatJson to ignore '\n' in value.

(cherry picked from commit 04114fd201c20efe9fbe85f00bec9a99ae3747ad)
(cherry picked from commit f072da554cb00e8554add714fecd037625ab305d)
(cherry picked from commit 099b980f17d0f2a735907b060d2beef38fabb207)
src/Message/Message.cxx
src/Message/Message_AttributeMeter.cxx
src/Message/Message_AttributeStream.cxx
src/Message/Message_CompositeAlerts.cxx
src/Message/Message_Report.cxx
src/Standard/Standard_Dump.cxx
src/Standard/Standard_Dump.hxx