]> 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>
Mon, 29 Mar 2021 10:02:59 +0000 (13:02 +0300)
commit116a682e01982c75f815cfcb5e749582f0b9fe1e
tree71bf30cc16f3e0ede629dc330318edb184a79247
parentc6835e3a6ed60f32319e2e7517e9cd91641bbda4
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