26 #ifndef __ShHealOper_ModifStats_HXX__
27 #define __ShHealOper_ModifStats_HXX__
44 Datum(
const std::string& txt,
int cnt=0 ): myModif( txt ), myCount(cnt) {}
45 bool operator< (
const Datum& o )
const {
return myModif < o.
myModif; }
49 void AddModif(
const std::string& modifText,
int nb=1 )
51 std::set< Datum >::iterator d = myData.insert(
Datum( modifText )).first;
58 if ( myData.empty() ) myData = stats.
myData;
60 std::set< Datum >::const_iterator d = stats.
myData.begin();
61 for ( ; d != stats.
myData.end(); ++d )
62 AddModif( d->myModif, d->myCount );
67 const std::set< Datum >&
GetData()
const {
return myData; }
70 void Clear() { myData.clear(); }