model_server/gala/src/AttributeEditor.cxx
// this function will add new enum value to the existing enum attribute
this function will add new enum value to the existing enum attribute
this function will add new enum value to the existing enum attribute
void gdAttributeEditor::AddEnumAttributeValue(char *name, char *enum_val)
{
    AttributeInfo *ptr = attribute_list;
    while(ptr != NULL){
	if(strcmp(ptr->name, name) == 0){
	    if(ptr->enum_vals == NULL){
		ptr->enum_vals = new AttributeEnumVal(enum_val);
		break;
	    } else {
		AttributeEnumVal *vptr = ptr->enum_vals;
		while(vptr->next != NULL){
		    vptr = vptr->next;
		}
		vptr->next = new AttributeEnumVal(enum_val);
	    } 
	}
	ptr = ptr->next;
    };
}
void gdAttributeEditor :: AddEnumAttributeValue ( char * name , char * enum_val ) { AttributeInfo * ptr = attribute_list ; while ( ptr != NULL ) { if ( strcmp ( ptr -> name , name ) == 0 ) { if ( ptr -> enum_vals == NULL ) { ptr -> enum_vals = new AttributeEnumVal ( enum_val ) ; break ; } else { AttributeEnumVal * vptr = ptr -> enum_vals ; while ( vptr -> next != NULL ) { vptr = vptr -> next ; } vptr -> next = new AttributeEnumVal ( enum_val ) ; } } ptr = ptr -> next ; } ; }
this function will add new enum value to the existing enum attribute
this function will add new enum value to the existing enum attribute