File indexing completed on 2025-01-18 10:04:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _StdLPersistent_Function_HeaderFile
0016 #define _StdLPersistent_Function_HeaderFile
0017
0018 #include <StdObjMgt_Attribute.hxx>
0019
0020 #include <TFunction_Function.hxx>
0021 #include <Standard_GUID.hxx>
0022
0023
0024 class StdLPersistent_Function : public StdObjMgt_Attribute<TFunction_Function>
0025 {
0026 public:
0027
0028 StdLPersistent_Function()
0029 : myFailure(0)
0030 {
0031 }
0032
0033 inline void Read (StdObjMgt_ReadData& theReadData)
0034 { theReadData >> myDriverGUID >> myFailure; }
0035
0036 inline void Write (StdObjMgt_WriteData& theWriteData) const
0037 { theWriteData << myDriverGUID << myFailure; }
0038
0039 inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const {}
0040
0041 inline Standard_CString PName() const { return "PFunction_Function"; }
0042
0043
0044 void Import (const Handle(TFunction_Function)& theAttribute) const
0045 {
0046 theAttribute->SetDriverGUID (myDriverGUID);
0047 theAttribute->SetFailure (myFailure);
0048 }
0049
0050 private:
0051 Standard_GUID myDriverGUID;
0052 Standard_Integer myFailure;
0053 };
0054
0055 #endif