X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeRefAttr.h;h=40e3e0ecbec066380b0252fb7a6c89088558037a;hb=28d317bd93c0cecba59d648d76209cc3c6200ace;hp=efb879c6d5f35a1e833708550221a10296f76ea2;hpb=2c4f7de06341fa7af89f47ba405fe188f13e3600;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeRefAttr.h b/src/Model/Model_AttributeRefAttr.h index efb879c6d..40e3e0ecb 100644 --- a/src/Model/Model_AttributeRefAttr.h +++ b/src/Model/Model_AttributeRefAttr.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: Model_AttributeRefAttr.h // Created: 8 May 2014 // Author: Mikhail PONIKAROV @@ -19,18 +21,18 @@ 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 attribute (empty if this is a reference to a feature) Handle_TDataStd_Comment myID; -public: + 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 object MODEL_EXPORT virtual void setObject(ObjectPtr theFeature); @@ -38,7 +40,10 @@ public: /// Returns object referenced from this attribute MODEL_EXPORT virtual ObjectPtr object(); -protected: + /// 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);