X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeRefAttr.h;h=40e3e0ecbec066380b0252fb7a6c89088558037a;hb=383021cb51c4720904096ca851db5ee79255b402;hp=94609a8f5f37e5e9390638844764f3d177d5b775;hpb=7bf19255421b34594c7b0a76d0ce28166d0ce895;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeRefAttr.h b/src/Model/Model_AttributeRefAttr.h index 94609a8f5..40e3e0ecb 100644 --- a/src/Model/Model_AttributeRefAttr.h +++ b/src/Model/Model_AttributeRefAttr.h @@ -22,7 +22,7 @@ class Model_AttributeRefAttr : public ModelAPI_AttributeRefAttr { Handle_TDF_Reference myRef; ///< reference to the feature label - ///< ID of the referenced attirbute (empty if this is a reference to a feature) + ///< ID of the referenced attribute (empty if this is a reference to a feature) Handle_TDataStd_Comment myID; public: /// Returns true if this attribute references to a object (not to the attribute) @@ -40,6 +40,9 @@ class Model_AttributeRefAttr : public ModelAPI_AttributeRefAttr /// Returns object referenced from this attribute MODEL_EXPORT virtual ObjectPtr object(); + /// Returns true if attribute was initialized by some value + MODEL_EXPORT virtual bool isInitialized(); + protected: /// Objects are created for features automatically MODEL_EXPORT Model_AttributeRefAttr(TDF_Label& theLabel);