Changeset 3857 for issm/trunk
- Timestamp:
- 05/19/10 16:43:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/DataSet/Inputs.cpp
r3855 r3857 486 486 /*}}}*/ 487 487 /*FUNCTION Inputs::ChangeEnum{{{1*/ 488 void Inputs::ChangeEnum(int enumtype,int newenumtype){488 void Inputs::ChangeEnum(int oldenumtype,int newenumtype){ 489 489 490 490 /*Go through dataset of inputs and look for input with … … 493 493 Input* input=NULL; 494 494 495 for ( object=objects.begin() ; object < objects.end(); object++ ){ 496 497 input=(Input*)(*object); 498 499 if (input->EnumType()==enumtype){ 495 /*Delete existing input of newenumtype if it exists*/ 496 for ( object=objects.begin() ; object < objects.end(); object++ ){ 497 input=(Input*)(*object); 498 499 if (input->EnumType()==newenumtype){ 500 this->DeleteObject(input); 501 break; 502 } 503 } 504 505 /*Change enum_type of input of oldenumtype*/ 506 for ( object=objects.begin() ; object < objects.end(); object++ ){ 507 508 input=(Input*)(*object); 509 510 if (input->EnumType()==oldenumtype){ 500 511 input->ChangeEnum(newenumtype); 501 512 break;
Note:
See TracChangeset
for help on using the changeset viewer.