Showing results for 
Search instead for 
Do you mean 
Reply

ITK api for Retrieving the names of classes and attributes

Given class id, I need the class name. Below, classId contains the id of a class. I need the display name of that class.
strcpy(classId,tempStr[i]);
printf("\n class id is:%s",classId);
ifail=POM_string_to_tag(classId,&class_idTag);
printf("\nclass tag is :%u",class_idTag);
ifail=POM_name_of_class(class_idTag,&className);
printf("\n class name is:%s",className);

Similarly, I need the attribute id, given teh attribute name. Given below, headStr[i] contains attribute name as string, className contains the name of the class as string.I need id of the attribute.

ifail=POM_attr_id_of_attr(headStr[i],className,&attrId);
ifail=POM_tag_to_string(attrId,&attrIdStr);
printf("\n String from tag of attribute id:%s",attrIdStr);
strcpy(attribStr[i],attrIdStr);