Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultGroup.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_ResultGroup.hxx
4 // Created:     07 Jul 2014
5 // Author:      Mikhail PONIKAROV
6
7 #ifndef ModelAPI_ResultGroup_H_
8 #define ModelAPI_ResultGroup_H_
9
10 #include "ModelAPI_Result.h"
11 #include <GeomAPI_Shape.h>
12 #include <memory>
13 #include <string>
14
15 /**\class ModelAPI_ResultGroup
16  * \ingroup DataModel
17  * \brief The groups result.
18  *
19  * Provides a compound of selected elements, without storage, one the fly.
20  */
21 class ModelAPI_ResultGroup : public ModelAPI_Result
22 {
23 public:
24   /// Returns the group identifier of this result
25   virtual std::string groupName()
26   {
27     return group();
28   }
29
30   /// Returns the group identifier of this result
31   static std::string group()
32   {
33     static std::string MY_GROUP = "Groups";
34     return MY_GROUP;
35   }
36
37 };
38
39 //! Pointer on feature object
40 typedef std::shared_ptr<ModelAPI_ResultGroup> ResultGroupPtr;
41
42 #endif