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