]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Selector/Selector_NameGenerator.h
Salome HOME
Update copyrights
[modules/shaper.git] / src / Selector / Selector_NameGenerator.h
index 80fb8650c074d1273606a9132e6d10fd5ecb0155..2a819a3ff0a8db6947fb649b51abd772371cb472 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef Selector_NameGenerator_H_
 class Selector_NameGenerator
 {
 public:
-  // empty constructor, nothing to add
+  /// empty constructor, nothing to add
   Selector_NameGenerator() {};
 
-  // This method returns the context name by the label of the sub-selected shape
+  /// This method returns the context name by the label of the sub-selected shape
   virtual std::string contextName(const TDF_Label theSelectionLab) = 0;
+
+  /// This method restores by the context and value name the context label and
+  /// sub-label where the value is. Returns true if it is valid.
+  virtual bool restoreContext(std::string theName,
+    TDF_Label& theContext, TDF_Label& theValue) = 0;
+
+  /// Returns true if the first result is older than the second one in the tree of features
+  virtual bool isLater(const TDF_Label theResult1, const TDF_Label theResult2) const = 0;
 };
 
 #endif