Salome HOME
Sketch line feature based on points attributes
[modules/shaper.git] / src / ModelAPI / ModelAPI_Data.h
index 73fe3d7ded337819b4e5ca8dbfbb7aa69755ac32..077e75d2766110a4eafea99537fb1641afd967f1 100644 (file)
@@ -12,6 +12,7 @@
 class ModelAPI_AttributeDocRef;
 class ModelAPI_AttributeDouble;
 class ModelAPI_Document;
+class ModelAPI_Attribute;
 
 /**\class ModelAPI_Data
  * \ingroup DataModel
@@ -34,6 +35,10 @@ public:
   /// Returns the attribute that contains real value with double precision
   virtual boost::shared_ptr<ModelAPI_AttributeDouble> real(const std::string theID) = 0;
 
+  /// Returns the generic attribute by identifier
+  /// \param theID identifier of the attribute
+  virtual boost::shared_ptr<ModelAPI_Attribute> attribute(const std::string theID) = 0;
+
   /// Initializes object by the attributes: must be called just after the object is created
   /// for each attribute of the object
   /// \param theID identifier of the attribute that can be referenced by this ID later