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