Changeset 25836 for issm/trunk/src/c/modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp
- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c
- Property svn:ignore
-
old new 23 23 issm_ocean 24 24 issm_dakota 25 issm_post
-
- Property svn:ignore
-
issm/trunk/src/c/modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp
r24313 r25836 14 14 15 15 /*Now, go through the output definitions, and retrieve the object which corresponds to our requested response, output_string: */ 16 for( int i=0;i<output_definitions->Size();i++){17 Definition* definition=dynamic_cast<Definition*>(o utput_definitions->GetObjectByOffset(i));16 for(Object* & object : output_definitions->objects){ 17 Definition* definition=dynamic_cast<Definition*>(object); 18 18 19 19 char* name = definition->Name(); … … 42 42 43 43 /*Now, go through the output definitions, and retrieve the object which corresponds to our requested response, output_enum: */ 44 for(int i=0;i<output_definitions->Size();i++){ 45 46 //Definition* definition=xDynamicCast<Definition*>(output_definitions->GetObjectByOffset(i)); 47 Definition* definition=dynamic_cast<Definition*>(output_definitions->GetObjectByOffset(i)); 44 for(Object* & object : output_definitions->objects){ 45 Definition* definition=dynamic_cast<Definition*>(object); 48 46 49 47 int en = definition->DefinitionEnum(); … … 59 57 60 58 /*If we are here, did not find the definition for this response, not good!: */ 61 _error_("Could not find the response for output definition " << EnumToStringx(output_enum) 59 _error_("Could not find the response for output definition " << EnumToStringx(output_enum) 62 60 <<" ("<<output_enum<<")" 63 61 << " because could not find the definition itself!");
Note:
See TracChangeset
for help on using the changeset viewer.