Salome HOME
Minor changes with classes renaming and virtual destructors declarations.
[modules/shaper.git] / src / ModelAPI / ModelAPI_Attribute.h
1 // File:        ModelAPI_Attribute.h
2 // Created:     2 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef ModelAPI_Attribute_HeaderFile
6 #define ModelAPI_Attribute_HeaderFile
7
8 #include "ModelAPI.h"
9 #include <string>
10
11 /**\class ModelAPI_Attribute
12  * \ingroup DataModel
13  * \brief Generic attribute of the Object.
14  */
15
16 class MODELAPI_EXPORT ModelAPI_Attribute
17 {
18 public:
19   
20   /// Returns the type of this class of attributes, not static method
21   virtual std::string attributeType() = 0;
22
23   /// To virtually destroy the fields of successors
24   virtual ~ModelAPI_Attribute() {}
25
26 protected:
27   /// Objects are created for features automatically
28   ModelAPI_Attribute(){}
29
30 };
31
32 #endif