File indexing completed on 2025-01-18 10:05:00
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _StdPersistent_DataXtd_Constraint_HeaderFile
0016 #define _StdPersistent_DataXtd_Constraint_HeaderFile
0017
0018 #include <StdObjMgt_Attribute.hxx>
0019 #include <StdLPersistent_HArray1.hxx>
0020
0021 #include <TDataXtd_Constraint.hxx>
0022
0023
0024 class StdPersistent_DataXtd_Constraint
0025 : public StdObjMgt_Attribute<TDataXtd_Constraint>
0026 {
0027 public:
0028
0029 inline void Read (StdObjMgt_ReadData& theReadData)
0030 {
0031 theReadData >> myType >> myGeometries >> myValue
0032 >> myIsReversed >> myIsInverted >> myIsVerified >> myPlane;
0033 }
0034
0035 inline void Write (StdObjMgt_WriteData& theWriteData) const
0036 {
0037 theWriteData << myType << myGeometries << myValue
0038 << myIsReversed << myIsInverted << myIsVerified << myPlane;
0039 }
0040
0041 inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
0042 {
0043 theChildren.Append(myGeometries);
0044 theChildren.Append(myValue);
0045 theChildren.Append(myPlane);
0046 }
0047
0048 inline Standard_CString PName() const { return "PDataXtd_Constraint"; }
0049
0050
0051 void Import (const Handle(TDataXtd_Constraint)& theAttribute) const;
0052
0053 private:
0054 Standard_Integer myType;
0055 Handle(StdLPersistent_HArray1::Persistent) myGeometries;
0056 Handle(StdObjMgt_Persistent) myValue;
0057 Standard_Boolean myIsReversed;
0058 Standard_Boolean myIsInverted;
0059 Standard_Boolean myIsVerified;
0060 Handle(StdObjMgt_Persistent) myPlane;
0061 };
0062
0063 #endif