Changeset 12383
- Timestamp:
- 06/07/12 10:35:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/pairoptions.m
r12351 r12383 223 223 end 224 224 end % }}} 225 function marshall(obj,fid )% {{{226 disp('No options marshalled for now'); 225 function marshall(obj,fid,firstindex)% {{{ 226 227 227 for i=1:size(obj.list,1), 228 228 name = obj.list{i,1}; 229 229 value = obj.list{i,2}; 230 230 231 %Write option name 232 WriteData(fid,'enum',(firstindex-1)+2*i-1,'data',name,'format','String'); 233 234 %Write option value 231 235 if (isnumeric(value) & numel(value)==1), 232 %236 WriteData(fid,'enum',(firstindex-1)+2*i,'data',value,'format','Double'); 233 237 elseif ischar(value), 234 %238 WriteData(fid,'enum',(firstindex-1)+2*i,'data',value,'format','String'); 235 239 else 236 240 error(['Cannot marshall option ' name ': format not supported yet']);
Note:
See TracChangeset
for help on using the changeset viewer.