SHAPER  9.12.0
Selector_AlgoWithSubs.h
1 // Copyright (C) 2014-2023 CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef Selector_AlgoWithSubs_H_
21 #define Selector_AlgoWithSubs_H_
22 
23 #include "Selector_Algo.h"
24 
25 #include <list>
26 
33 {
34  std::list<Selector_Algo*> mySubSelList;
35 public:
39  virtual ~Selector_AlgoWithSubs();
41  void clearSubAlgos();
43  TDF_Label newSubLabel();
45  bool append(Selector_Algo* theAlgo, const bool theEraseIfNull = true);
47  std::list<Selector_Algo*>& list();
48 };
49 
50 #endif
Kind of selection algorithm: generic algorithm that contains sub-algorithms inside.
Definition: Selector_AlgoWithSubs.h:33
std::list< Selector_Algo * > & list()
Returns the stored list of sub-algorithms.
Definition: Selector_AlgoWithSubs.cpp:55
virtual ~Selector_AlgoWithSubs()
Destructor.
Definition: Selector_AlgoWithSubs.cpp:34
TDF_Label newSubLabel()
Returns the next label for a new sub-selector created.
Definition: Selector_AlgoWithSubs.cpp:39
Selector_AlgoWithSubs()
Initializes selector.
Definition: Selector_AlgoWithSubs.cpp:22
bool append(Selector_Algo *theAlgo, const bool theEraseIfNull=true)
Appends a new algorithm to the list, erases list if it is null (failed)
Definition: Selector_AlgoWithSubs.cpp:44
void clearSubAlgos()
Erases the sub-algorithms stored.
Definition: Selector_AlgoWithSubs.cpp:25
Definition: Selector_Algo.h:37