]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Reference.h
Salome HOME
Update copyrights
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Reference.h
index 71a6f2acaed2eb8394d06a258744c7325f416a5a..50a8cf14f3c8253e423aaf3bdccbece1d5020da7 100644 (file)
@@ -1,8 +1,21 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
-
-// File:        FeaturesAPI_Reference.h
-// Created:     04 August 2016
-// Author:      Mikhail Ponikarov
+// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_REFERENCE_H_
 #define SRC_MODELHIGHAPI_MODELHIGHAPI_REFERENCE_H_
@@ -16,6 +29,7 @@
 class ModelAPI_Attribute;
 class ModelAPI_AttributeReference;
 class ModelAPI_AttributeRefList;
+class ModelAPI_Feature;
 class ModelAPI_Object;
 class ModelHighAPI_Interface;
 //--------------------------------------------------------------------------------------
@@ -40,13 +54,17 @@ public:
   virtual ~ModelHighAPI_Reference();
 
   /// Fill attribute values
-  MODELHIGHAPI_EXPORT
-  virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeReference> & theAttribute) const;
+  MODELHIGHAPI_EXPORT virtual
+    void fillAttribute(const std::shared_ptr<ModelAPI_AttributeReference> & theAttribute) const;
 
   /// Append to list attribute
   MODELHIGHAPI_EXPORT
   virtual void appendToList(const std::shared_ptr<ModelAPI_AttributeRefList> & theAttribute) const;
 
+  /// Returns feature for this object.
+  MODELHIGHAPI_EXPORT
+  virtual std::shared_ptr<ModelAPI_Feature> feature() const;
+
 private:
   std::shared_ptr<ModelAPI_Object> myObject;
 };