Salome HOME
Bug #490: batch mode error.
[modules/hydro.git] / src / HYDROData / HYDROData_ShapesGroup.h
index 8d6a1948ba44ab1c63c8994c495eb97c6fa5801e..69ac557e2d072af2e8a513979fb708b52f460628 100644 (file)
@@ -6,8 +6,12 @@
 
 #include <TopTools_SequenceOfShape.hxx>
 
+#include <QString>
+
 class TopoDS_Shape;
 class TopTools_ListOfShape;
+class BRepBuilderAPI_MakeShape;
+class ShapeUpgrade_UnifySameDomain;
 
 DEFINE_STANDARD_HANDLE(HYDROData_ShapesGroup, HYDROData_Entity)
 
@@ -16,6 +20,28 @@ DEFINE_STANDARD_HANDLE(HYDROData_ShapesGroup, HYDROData_Entity)
  */
 class HYDROData_ShapesGroup : public HYDROData_Entity
 {
+public:
+
+  struct GroupDefinition
+  {
+    GroupDefinition() {}
+
+    static void Update( NCollection_Sequence<GroupDefinition>* theGroupsDefs,
+                        BRepBuilderAPI_MakeShape*              theAlgo );
+
+    static void Update( NCollection_Sequence<GroupDefinition>* theGroupsDefs,
+                        ShapeUpgrade_UnifySameDomain*          theAlgo );
+
+    void        Dump( std::ostream& theStream ) const;
+
+    static void Dump( std::ostream&                                theStream,
+                      const NCollection_Sequence<GroupDefinition>& theGroups );
+
+    TCollection_AsciiString            Name;
+    TopTools_SequenceOfShape           Shapes;
+  };
+  typedef NCollection_Sequence<GroupDefinition> SeqOfGroupsDefs;
+
 protected:
   /**
    * Enumeration of tags corresponding to the persistent object parameters.