- return myReal->Get();
-}
-
-Model_AttributeDouble::Model_AttributeDouble(TDF_Label& theLabel)
-{
- // check the attribute could be already presented in this doc (after load document)
- myIsInitialized = theLabel.FindAttribute(TDataStd_Real::GetID(), myReal) == Standard_True;
- if (!myIsInitialized) {
- // create attribute: not initialized by value yet, just zero
- myReal = TDataStd_Real::Set(theLabel, 0.);
- }
- if (!theLabel.FindAttribute(TDataStd_Name::GetID(), myText)) {
- myText = TDataStd_Name::Set(theLabel, TCollection_ExtendedString());
- }