0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / ShapePersistent / ShapePersistent_HArray1.hxx
index d25a7f5..a1a4b79 100644 (file)
@@ -51,10 +51,23 @@ public:
 inline StdObjMgt_ReadData& operator >>
   (StdObjMgt_ReadData& theReadData, Poly_Triangle& theTriangle)
 {
+  StdObjMgt_ReadData::ObjectSentry aSentry (theReadData);
+
   Standard_Integer N1, N2, N3;
   theReadData >> N1 >> N2 >> N3;
   theTriangle.Set (N1, N2, N3);
   return theReadData;
 }
 
+inline StdObjMgt_WriteData& operator <<
+  (StdObjMgt_WriteData& theWriteData, const Poly_Triangle& theTriangle)
+{
+  StdObjMgt_WriteData::ObjectSentry aSentry (theWriteData);
+
+  Standard_Integer N1, N2, N3;
+  theTriangle.Get(N1, N2, N3);
+  theWriteData << N1 << N2 << N3;
+  return theWriteData;
+}
+
 #endif