0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / Geom / Geom_OsculatingSurface.cxx
index 665d97b..2db608d 100644 (file)
@@ -796,5 +796,23 @@ void Geom_OsculatingSurface::ClearOsculFlags()
 
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+void Geom_OsculatingSurface::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
+{
+  OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myBasisSurf.get())
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTol)
 
+  if (!myOsculSurf1.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myOsculSurf1->Size())
+  if (!myOsculSurf2.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myOsculSurf2->Size())
+  if (!myKdeg.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myKdeg->Size())
 
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myAlong.Size())
+}