Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.h
1 // File:        ModuleBase_Tools.h
2 // Created:     11 July 2014
3 // Author:      Vitaly Smetannikov
4
5 #ifndef ModuleBase_Tools_H
6 #define ModuleBase_Tools_H
7
8 #include "ModuleBase.h"
9
10 #include <ModelAPI_Result.h>
11 #include <ModelAPI_Feature.h>
12
13 class GeomAPI_Shape;
14
15 namespace ModuleBase_Tools {
16
17 /**
18  * Returns returns a shape if the result has a shape method. Otherwise returns NULL pointer
19  */
20 MODULEBASE_EXPORT boost::shared_ptr<GeomAPI_Shape> shape(ResultPtr theResult);
21
22 MODULEBASE_EXPORT FeaturePtr feature(ObjectPtr theObject);
23
24 }
25 ;
26
27 #endif