occt: master 04114fd2

Author Committer Branch Timestamp Parent
nds bugmaster master 2020-12-18 10:09:08 master 983aaaeb
Affected Issues  0031945: Foundation Classes - unique names of alerts of message report in DumpJson
Changeset 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.
mod - src/Message/Message.cxx Diff File
mod - src/Message/Message_AttributeMeter.cxx Diff File
mod - src/Message/Message_AttributeStream.cxx Diff File
mod - src/Message/Message_CompositeAlerts.cxx Diff File
mod - src/Message/Message_Report.cxx Diff File
mod - src/Standard/Standard_Dump.cxx Diff File
mod - src/Standard/Standard_Dump.hxx Diff File