Changeset 4905


Ignore:
Timestamp:
07/30/10 11:14:40 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added Inputs.cpp

Location:
issm/trunk/src/c/Container
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Container/Inputs.cpp

    r4899 r4905  
    311311        }
    312312        this->AddObject(in_input);
     313
     314        return 1;
    313315}
    314316/*}}}*/
     
    328330        }
    329331        return NULL;
     332}
     333/*}}}*/
     334/*FUNCTION Inputs::DeleteInput{{{1*/
     335int  Inputs::DeleteInput(int enum_type){
     336
     337        vector<Object*>::iterator object;
     338        Input* input=NULL;
     339
     340        for ( object=objects.begin() ; object < objects.end(); object++ ){
     341
     342                input=(Input*)(*object);
     343
     344                if (input->EnumType()==enum_type){
     345                        this->DeleteObject(input);
     346                        break;
     347                }
     348        }
     349
     350        return 1;
     351
    330352}
    331353/*}}}*/
  • issm/trunk/src/c/Container/Inputs.h

    r4899 r4905  
    2929                /*numerics: {{{1*/
    3030                int     AddInput(Input* in_input);
    31                 Input* GetInput(int enum_name);
     31                int     DeleteInput(int enum_type);
     32                Input*  GetInput(int enum_name);
    3233                Inputs* SpawnTriaInputs(int* indices);
    3334                Inputs* SpawnBeamInputs(int* indices);
Note: See TracChangeset for help on using the changeset viewer.