From: srn Date: Wed, 24 Jan 2007 13:48:54 +0000 (+0000) Subject: 12601, added a comporator for a set of Families in order to make it be sorted in... X-Git-Tag: V3_2_5~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4508f09860543c8ba0152a02ee49d1f2c97557e8;p=modules%2Fvisu.git 12601, added a comporator for a set of Families in order to make it be sorted in alphabetic order --- diff --git a/src/CONVERTOR/VISU_Convertor.hxx b/src/CONVERTOR/VISU_Convertor.hxx index f6564a32..ae760147 100644 --- a/src/CONVERTOR/VISU_Convertor.hxx +++ b/src/CONVERTOR/VISU_Convertor.hxx @@ -170,7 +170,15 @@ namespace VISU //--------------------------------------------------------------- - typedef std::set TFamilySet; + + class FamilyCmp { + public: + bool operator() (const PFamily& theFamily1, const PFamily& theFamily2) const { + return (theFamily1->myName < theFamily2->myName); + } + }; + + typedef std::set TFamilySet; //! Define a basic class for MED GROUP entity struct TGroup: virtual TIDMapper