0031313: Foundation Classes - Dump improvement for classes
- Provide DumpJson for geometrical, ocaf and visualization classes;
- Change depth parameter of DumpJson (constant is not obligate here)
- Introduce a new macro for transient objects to be called as the first row in DumpJson: OCCT_DUMP_TRANSIENT_CLASS_BEGIN. We need not put the class name in the macro, using get_type_name of Standard_Transient for it.
- change implementation of OCCT_DUMP_CLASS_BEGIN and OCCT_DUMP_TRANSIENT_CLASS_BEGIN. It is not an sentry more and it does not create a new hierarchy level. It appends a new row into the output stream: "className": <className>
- OCCT_DUMP_* does not require semicolon
- class header is included first in source files of TDataStd, TDocStd, TCAFDoc
(cherry picked from commit
bc73b00672a218a1301520a3562ece96f72a679c)
# Conflicts:
# src/AIS/AIS_Trihedron.cxx
# src/Geom/Geom_Conic.cxx
# src/Geom/Geom_Conic.hxx
# src/Geom/Geom_ElementarySurface.cxx
# src/Geom/Geom_ElementarySurface.hxx
# src/Geom2d/Geom2d_Conic.hxx
# src/Graphic3d/Graphic3d_BSDF.cxx
# src/Graphic3d/Graphic3d_MaterialAspect.hxx
# src/Graphic3d/Graphic3d_PBRMaterial.cxx
# src/Graphic3d/Graphic3d_PBRMaterial.hxx
# src/OpenGl/OpenGl_GraduatedTrihedron.hxx
# src/OpenGl/OpenGl_StencilTest.hxx
# src/Poly/Poly_Polygon2D.cxx
# src/Poly/Poly_Polygon2D.hxx
# src/Poly/Poly_Polygon3D.cxx
# src/Poly/Poly_PolygonOnTriangulation.cxx
# src/Quantity/Quantity_Color.cxx
# src/TDataStd/TDataStd_NamedData.hxx
# src/V3d/V3d_Viewer.hxx
# src/XCAFDoc/XCAFDoc_AssemblyItemId.cxx
# src/XCAFDoc/XCAFDoc_NoteBinData.cxx
# src/XCAFDoc/XCAFDoc_NoteComment.cxx
# src/XCAFDoc/XCAFDoc_NotesTool.cxx
# src/XCAFDoc/XCAFDoc_NotesTool.hxx
# src/XCAFDoc/XCAFDoc_VisMaterial.cxx
# src/XCAFDoc/XCAFDoc_VisMaterial.hxx
# src/XCAFDoc/XCAFDoc_VisMaterialCommon.hxx
# src/XCAFDoc/XCAFDoc_VisMaterialPBR.hxx