#include namespace creaImageIO{ Comparator::Comparator(tree::Node *i_tree, std::string i_tag) : m_discr(i_tag): bdiscr(false) { std::map< std::string, std::string> attr; i_tree->GetDescriptor().BuildAttributeMap(attr); std::map::iterator it_att = attr.begin(); for(; it_att != attr.end(); it_att++) { if (it_att->first == m_discr) { bdiscr = true; break; } } tree::Node::ChildrenListType::reverse_iterator j; for (j = (*i)->GetChildrenList().rbegin(); j!= (*i)->GetChildrenList().rend(); ++j) { GimmickDebugMessage(1, "adding children " <<(*j)->GetLabel() <<"'" <node = *j; data->id = _id; item.SetId(_id); item.SetData(data); _id++; GetCtrl(l)->InsertItem(item); //Setting attributes for (int k=0; kGetColumnCount(); ++k) { std::string val; // Temporary correction : it works but no explanation about the problem FCY if(k==0 && level <3) { val = (*j)->GetAttribute("NumberOfChildren"); } else val = (*j)->GetAttribute(mLevelList[l].key[k]); } }