Ignore:
Timestamp:
Mar 3, 2010, 10:48:08 AM (11 years ago)
Author:
sommeria
Message:

read_imadoc suppressed (obsolete, replaced by imadoc2struct)
update_imadoc: bug repaired: existing xml file was erased
various cleaning (deals with non existing input file for series and uvmat)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_imadoc.m

    r17 r29  
    1010testappend=0;
    1111if exist(outputfile,'file');%=1 if the output file already exists, 0 else 
     12    testappend=1;
    1213    t=xmltree(outputfile); %read the file
    1314    backupfile=outputfile;
     
    2829        [t,uid_calib]=add(t,1,'element','GeometryCalib');
    2930    else %if GeometryCalib already exists, delete its content
    30 %         backupfile=outputfile;
    31 %         testexist=2;
    32 %         while testexist==2
    33 %            backupfile=[backupfile '~'];
    34 %            testexist=exist(backupfile,'file');
    35 %         end
    36 %         [success,message]=copyfile(outputfile,backupfile);%make backup
    3731        if isequal(success,1)
    3832            delete(outputfile)
     
    4236        uid_child=children(t,uid_calib);
    4337        t=delete(t,uid_child);
    44         testappend=1;
    4538    end
    4639end
     
    4942    t=set(t,1,'name','ImaDoc');
    5043    [t,uid_calib]=add(t,1,'element','GeometryCalib');
    51 %     t=struct2xml(GeometryCalib,t,uid_calib);
    5244end
    5345t=struct2xml(GeometryCalib,t,uid_calib);
Note: See TracChangeset for help on using the changeset viewer.