]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
12601, added a comporator for a set of Families in order to make it be sorted in...
authorsrn <srn@opencascade.com>
Wed, 24 Jan 2007 13:48:54 +0000 (13:48 +0000)
committersrn <srn@opencascade.com>
Wed, 24 Jan 2007 13:48:54 +0000 (13:48 +0000)
src/CONVERTOR/VISU_Convertor.hxx

index f6564a32e3566248101f39867c8adf01dd4f6d66..ae7601470e5891412e1ac0812c6d6216b58fd206 100644 (file)
@@ -170,7 +170,15 @@ namespace VISU
 
 
   //---------------------------------------------------------------
-  typedef std::set<PFamily> TFamilySet;
+
+  class FamilyCmp {
+   public:
+    bool operator() (const PFamily& theFamily1, const PFamily& theFamily2) const {
+       return (theFamily1->myName < theFamily2->myName);
+    }
+  };
+
+  typedef std::set<PFamily, FamilyCmp> TFamilySet;
 
   //! Define a basic class for MED GROUP entity
   struct TGroup: virtual TIDMapper