1 // File: ModelAPI_AttributeRefAttr.h
3 // Author: Mikhail PONIKAROV
5 #ifndef ModelAPI_AttributeRefAttr_HeaderFile
6 #define ModelAPI_AttributeRefAttr_HeaderFile
8 #include "ModelAPI_Attribute.h"
10 /**\class ModelAPI_AttributeRefAttr
12 * \brief Attribute that contains reference to an attribute of a feature
13 * (located in the same document).
16 class ModelAPI_AttributeRefAttr : public ModelAPI_Attribute
19 /// Defines the attribute referenced from this attribute
20 MODELAPI_EXPORT virtual void setValue(boost::shared_ptr<ModelAPI_Attribute> theAttr) = 0;
22 /// Returns attribute referenced from this attribute
23 MODELAPI_EXPORT virtual boost::shared_ptr<ModelAPI_Attribute> value() = 0;
25 /// Returns the type of this class of attributes
26 MODELAPI_EXPORT static std::string type() {return "RefAttr";}
28 /// Returns the type of this class of attributes, not static method
29 MODELAPI_EXPORT virtual std::string attributeType() {return type();}
31 /// To virtually destroy the fields of successors
32 MODELAPI_EXPORT virtual ~ModelAPI_AttributeRefAttr() {}
35 /// Objects are created for features automatically
36 MODELAPI_EXPORT ModelAPI_AttributeRefAttr()