Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-12 08:47:40

0001 // Copyright (c) 2015 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _StdPersistent_DataXtd_Constraint_HeaderFile
0015 #define _StdPersistent_DataXtd_Constraint_HeaderFile
0016 
0017 #include <StdObjMgt_Attribute.hxx>
0018 #include <StdLPersistent_HArray1.hxx>
0019 
0020 #include <TDataXtd_Constraint.hxx>
0021 
0022 class StdPersistent_DataXtd_Constraint : public StdObjMgt_Attribute<TDataXtd_Constraint>
0023 {
0024 public:
0025   //! Read persistent data from a file.
0026   inline void Read(StdObjMgt_ReadData& theReadData)
0027   {
0028     theReadData >> myType >> myGeometries >> myValue >> myIsReversed >> myIsInverted >> myIsVerified
0029       >> myPlane;
0030   }
0031 
0032   //! Write persistent data to a file.
0033   inline void Write(StdObjMgt_WriteData& theWriteData) const
0034   {
0035     theWriteData << myType << myGeometries << myValue << myIsReversed << myIsInverted
0036                  << myIsVerified << myPlane;
0037   }
0038 
0039   //! Gets persistent child objects
0040   inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
0041   {
0042     theChildren.Append(myGeometries);
0043     theChildren.Append(myValue);
0044     theChildren.Append(myPlane);
0045   }
0046 
0047   //! Returns persistent type name
0048   inline Standard_CString PName() const { return "PDataXtd_Constraint"; }
0049 
0050   //! Import transient attribute from the persistent data.
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