Changeset 8565


Ignore:
Timestamp:
06/08/11 14:13:11 (14 years ago)
Author:
jschierm
Message:

Options: Modified Get method for list of strings.

File:
1 edited

Legend:

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

    r8536 r8565  
    239239                                for (i=0; i<option->NumEl(); i++) {
    240240                                        option2=((Option *)options->GetObjectByOffset(i));
    241                                         if(option2->Enum()==OptionCharEnum && option2->NDims()==2)
     241                                        if(option2->Enum()==OptionCharEnum)
    242242                                                option2->Get(&((*ppvalue)[i]));
    243243                                        else
     
    245245                                }
    246246                        }
     247                }
     248                /*If the object is a Char, copy the strings from its concatenation*/
     249                else if(option->Enum()==OptionCharEnum){
     250                        option->Get(ppvalue,numel);
    247251                }
    248252                /*Else: not supported*/
Note: See TracChangeset for help on using the changeset viewer.