Changeset 3789


Ignore:
Timestamp:
05/17/10 16:50:53 (15 years ago)
Author:
seroussi
Message:

added missing enum_type in Demarshall

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/DataSet/DataSet.cpp

    r3775 r3789  
    300300                        dataset->AddObject(riftfront);
    301301                }
     302                else if(enum_type==DoubleInputEnum){
     303                        DoubleInput* doubleinput=NULL;
     304                        doubleinput=new DoubleInput();
     305                        doubleinput->Demarshall(&marshalled_dataset);
     306                        dataset->AddObject(doubleinput);
     307                }
     308                else if(enum_type==IntInputEnum){
     309                        IntInput* intinput=NULL;
     310                        intinput=new IntInput();
     311                        intinput->Demarshall(&marshalled_dataset);
     312                        dataset->AddObject(intinput);
     313                }
     314                else if(enum_type==BoolInputEnum){
     315                        BoolInput* boolinput=NULL;
     316                        boolinput=new BoolInput();
     317                        boolinput->Demarshall(&marshalled_dataset);
     318                        dataset->AddObject(boolinput);
     319                }
     320                else if(enum_type==IntParamEnum){
     321                        IntParam* intparam=NULL;
     322                        intparam=new IntParam();
     323                        intparam->Demarshall(&marshalled_dataset);
     324                        dataset->AddObject(intparam);
     325                }
     326                else if(enum_type==BoolParamEnum){
     327                        BoolParam* boolparam=NULL;
     328                        boolparam=new BoolParam();
     329                        boolparam->Demarshall(&marshalled_dataset);
     330                        dataset->AddObject(boolparam);
     331                }
     332                else if(enum_type==StringParamEnum){
     333                        StringParam* stringparam=NULL;
     334                        stringparam=new StringParam();
     335                        stringparam->Demarshall(&marshalled_dataset);
     336                        dataset->AddObject(stringparam);
     337                }
    302338                else{
    303                         ISSMERROR("%s%i"," could not recognize enum type: ",enum_type);
     339                        ISSMERROR("could not recognize enum type: %i (%s)",enum_type,EnumAsString(enum_type));
    304340                }
    305341
Note: See TracChangeset for help on using the changeset viewer.