Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / ModelAPI / ModelAPI_Feature.h
1 // File:        ModelAPI_Feature.hxx
2 // Created:     21 Mar 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef ModelAPI_Feature_HeaderFile
6 #define ModelAPI_Feature_HeaderFile
7
8 #include "ModelAPI.h"
9 #include <string>
10
11 class ModelAPI_Feature;
12
13 /**\class ModelAPI_Feature
14  * \ingroup DataModel
15  * \brief General object of the application that allows
16  * to get/set attributes from the document and compute result of an operation.
17  */
18
19 class MODELAPI_EXPORT ModelAPI_Feature
20 {
21 public:
22   /// Returns the kind of a feature (like "Point")
23   virtual std::string GetKind() = 0;
24
25 protected:
26   /// Use plugin manager for features creation: this method is 
27   /// defined here only for SWIG-wrapping
28   ModelAPI_Feature()
29   {
30   }
31 };
32
33 #endif