}
}
}
+
+
+ //==================================================================
+ // test if an attribute is present in DescriptionList
+ // return level's name
+ const std::string Descriptor::isExist(const std::string i_attr)
+ {
+ std::string name = "";
+ LevelDescriptorListType::const_iterator l = GetLevelDescriptorList().begin();
+ for (; l!= GetLevelDescriptorList().end(); ++l)
+ {
+ LevelDescriptor::AttributeDescriptorListType::const_iterator a = l->GetAttributeDescriptorList().begin();
+ for(;a!= l->GetAttributeDescriptorList().end(); ++a)
+ {
+ if (a->GetKey() == i_attr)
+ {
+ name = l->GetName();
+ break;
+ }
+ }
+ }
+ return name.c_str();
+ }
}
}