Salome HOME
Issue #2071 Fatal error when Create box
[modules/shaper.git] / src / ModelAPI / ModelAPI_Entity.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_Entity.h
4 // Created:     27 July 2015
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef ModelAPI_Entity_H_
8 #define ModelAPI_Entity_H_
9
10 #include <memory>
11
12 /**\class ModelAPI_Entity
13  * \ingroup DataModel
14  * \brief Represents a common parent class for Objects and documents.
15  * Provided in order to make possible distinguishing of objects and documents
16  * by downcasting of their pointers.
17  */
18 class ModelAPI_Entity
19 {
20 public:
21   /// Empty function which is added for virtualiation of the interface
22   virtual void emptyFunction() const {}
23 };
24
25 typedef std::shared_ptr<ModelAPI_Entity> EntityPtr;
26
27
28 #endif