File indexing completed on 2026-09-21 09:18:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _StdLPersistent_Real_HeaderFile
0015 #define _StdLPersistent_Real_HeaderFile
0016
0017 #include <StdObjMgt_Attribute.hxx>
0018
0019 #include <TDataStd_Real.hxx>
0020
0021 class StdLPersistent_Real : public StdObjMgt_Attribute<TDataStd_Real>
0022 {
0023 public:
0024
0025 StdLPersistent_Real()
0026 : myValue(0.0),
0027 myDimension(0)
0028 {
0029 }
0030
0031
0032 inline void Read(StdObjMgt_ReadData& theReadData) { theReadData >> myValue >> myDimension; }
0033
0034
0035 inline void Write(StdObjMgt_WriteData& theWriteData) const
0036 {
0037 theWriteData << myValue << myDimension;
0038 }
0039
0040
0041 void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const {}
0042
0043
0044 const char* PName() const { return "PDataStd_Real"; }
0045
0046
0047 void Import(const occ::handle<TDataStd_Real>& theAttribute) const
0048 {
0049 theAttribute->Set(myValue);
0050 Standard_DISABLE_DEPRECATION_WARNINGS theAttribute->SetDimension(
0051 static_cast<TDataStd_RealEnum>(myDimension));
0052 Standard_ENABLE_DEPRECATION_WARNINGS theAttribute->SetID(TDataStd_Real::GetID());
0053 }
0054
0055 private:
0056 double myValue;
0057 int myDimension;
0058 };
0059
0060 #endif