Changeset 16794


Ignore:
Timestamp:
11/15/13 16:19:47 (11 years ago)
Author:
Eric.Larour
Message:

CHG: changed the way OutputDefinitionsResponsex retrieves the output definitions, so we can store information
in the output definitions without it being wiped out the next time we call the corresponding response function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp

    r16499 r16794  
    1515
    1616        /*Ok, go find the output definitions dataset in the parameters, where our responses are hiding: */
    17         femmodel->parameters->FindParam(&output_definitions,OutputdefinitionEnum); _assert_(output_definitions);
     17        output_definitions=((DataSetParam*)femmodel->parameters->FindParamObject(OutputdefinitionEnum))->value;
    1818
    1919        /*Now, go through the output definitions, and retrieve the object which corresponds to our requested response, output_string: */
     
    2424                char* name = definition->Name();
    2525                if (strcmp(name,output_string)==0){
     26
    2627                        /*This is the object that we have been chasing for. compute the response and return: */
    2728                        return_value=definition->Response(femmodel);
    28                         delete output_definitions;
     29               
     30                        /*cleanup: */
    2931                        xDelete<char>(name);
     32
     33                        /*return:*/
    3034                        return return_value;
    3135                }
    3236                xDelete<char>(name);
    3337        }
     38       
    3439        /*If we are here, did not find the definition for this response, not good!: */
    3540        _error_("Could not find the response for output definition " << output_string << " because could not find the definition itself!");
Note: See TracChangeset for help on using the changeset viewer.