]> OCCT Git - occt.git/commit
0031945: Foundation Classes - unique names of alerts of message report in DumpJson IR-2020-12-18
authornds <nds@opencascade.com>
Fri, 18 Dec 2020 10:09:08 +0000 (13:09 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 18 Dec 2020 16:48:03 +0000 (19:48 +0300)
commit04114fd201c20efe9fbe85f00bec9a99ae3747ad
treef3ac67b49b585809d0d3b34556011172a01a74ba
parent983aaaeb03a6a66a144880f4156b0eeb207d3170
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.
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