X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeRefAttr.h;h=94609a8f5f37e5e9390638844764f3d177d5b775;hb=0b503091623876eda1ae9214e32f8831ef03778b;hp=69fda0163632dd7a0d858fd7c04c706d73ef4e0d;hpb=ae347a8a8014a15245199a3bb603413628e3f7d4;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeRefAttr.h b/src/Model/Model_AttributeRefAttr.h index 69fda0163..94609a8f5 100644 --- a/src/Model/Model_AttributeRefAttr.h +++ b/src/Model/Model_AttributeRefAttr.h @@ -1,9 +1,11 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: Model_AttributeRefAttr.h // Created: 8 May 2014 // Author: Mikhail PONIKAROV -#ifndef Model_AttributeRefAttr_HeaderFile -#define Model_AttributeRefAttr_HeaderFile +#ifndef Model_AttributeRefAttr_H_ +#define Model_AttributeRefAttr_H_ #include "Model.h" #include "ModelAPI_AttributeRefAttr.h" @@ -19,26 +21,26 @@ 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) + 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 feature (not to the attribute) - MODEL_EXPORT virtual bool isFeature(); + 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(boost::shared_ptr theAttr); + MODEL_EXPORT virtual void setAttr(std::shared_ptr theAttr); /// Returns attribute referenced from this attribute - MODEL_EXPORT virtual boost::shared_ptr attr(); + MODEL_EXPORT virtual std::shared_ptr attr(); - /// Defines the reference to the feature - MODEL_EXPORT virtual void setFeature(FeaturePtr theFeature); + /// Defines the reference to the object + MODEL_EXPORT virtual void setObject(ObjectPtr theFeature); - /// Returns feature referenced from this attribute - MODEL_EXPORT virtual FeaturePtr feature(); + /// Returns object referenced from this attribute + MODEL_EXPORT virtual ObjectPtr object(); -protected: + protected: /// Objects are created for features automatically MODEL_EXPORT Model_AttributeRefAttr(TDF_Label& theLabel);