- Handle_TDF_Reference myRef; ///< reference to the feature label
- Handle_TDataStd_Comment myID; ///< ID of the referenced attirbute
-public:
- /// Defines the attribute referenced from this attribute
- MODEL_EXPORT virtual void setValue(boost::shared_ptr<ModelAPI_Attribute> theAttr);
+ Handle_TDF_Reference myRef; ///< reference to the feature label
+ ///< ID of the referenced attirbute (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)
+ MODEL_EXPORT virtual bool isObject();
+
+ /// Defines the reference to the attribute
+ MODEL_EXPORT virtual void setAttr(std::shared_ptr<ModelAPI_Attribute> theAttr);