X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FXCAFDoc%2FXCAFDoc_AssemblyItemRef.cxx;h=73fb97f360dc1e788f37fd263a479168ed38848e;hb=bc73b00672a218a1301520a3562ece96f72a679c;hpb=00ea7f2676893c9dd9b31cf1f0a8bcad61416a6a diff --git a/src/XCAFDoc/XCAFDoc_AssemblyItemRef.cxx b/src/XCAFDoc/XCAFDoc_AssemblyItemRef.cxx index 9059998e78..73fb97f360 100644 --- a/src/XCAFDoc/XCAFDoc_AssemblyItemRef.cxx +++ b/src/XCAFDoc/XCAFDoc_AssemblyItemRef.cxx @@ -13,6 +13,9 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. +#include + +#include #include #include #include @@ -24,7 +27,6 @@ #include #include #include -#include IMPLEMENT_STANDARD_RTTIEXT(XCAFDoc_AssemblyItemRef, TDF_Attribute) @@ -293,3 +295,18 @@ XCAFDoc_AssemblyItemRef::Dump(Standard_OStream& theOS) const theOS << "/Subshape: " << myExtraId; return theOS; } + +//======================================================================= +//function : DumpJson +//purpose : +//======================================================================= +void XCAFDoc_AssemblyItemRef::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const +{ + OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream) + + OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_Attribute) + + OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myItemId) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myExtraRef) + OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myExtraId) +}