0028564: Support of applications using old persistence (ShapeSchema)
[occt.git] / src / StdLPersistent / StdLPersistent_Variable.hxx
index 8b9f21c..ab46337 100644 (file)
@@ -27,6 +27,14 @@ public:
   //! Read persistent data from a file.
   inline void Read (StdObjMgt_ReadData& theReadData)
     { theReadData >> myIsConstant >> myUnit; }
+  //! Write persistent data to a file.
+  inline void Write (StdObjMgt_WriteData& theWriteData) const
+    { theWriteData << myIsConstant << myUnit; }
+  //! Gets persistent child objects
+  inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const 
+    { theChildren.Append(myUnit); }
+  //! Returns persistent type name
+  inline Standard_CString PName() const { return "PDataStd_Variable"; }
 
   //! Import transient attribuite from the persistent data.
   void Import (const Handle(TDataStd_Variable)& theAttribute) const