Home > atmlab > arts > xml > xmlReadGridPos.m

xmlReadGridPos

PURPOSE ^

Reads a GridPos from an XML file.

SYNOPSIS ^

function result = xmlReadGridPos(fid, attrlist, itype, ftype, binary, fid2)

DESCRIPTION ^

 Reads a GridPos from an XML file.

    Internal function that should never be called directly.
    Use *xmlLoad* instead.

    Calls *xmlReadTag* for every member of the GridPos structure.

 FORMAT   result = xmlReadGridPos(fid, attrlist, itype, ftype, binary, fid2)

 OUT   result     GridPos
 IN    fid        File descriptor of XML file
 IN    attrlist   List of tag attributes
 IN    itype      Integer type of input file
 IN    ftype      Floating point type of input file
 IN    binary     Flag. 1 = binary file, 0 = ascii
 IN    fid2       File descriptor of binary file

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlReadGridPos.m

SOURCE CODE ^

0001 % Reads a GridPos from an XML file.
0002 %
0003 %    Internal function that should never be called directly.
0004 %    Use *xmlLoad* instead.
0005 %
0006 %    Calls *xmlReadTag* for every member of the GridPos structure.
0007 %
0008 % FORMAT   result = xmlReadGridPos(fid, attrlist, itype, ftype, binary, fid2)
0009 %
0010 % OUT   result     GridPos
0011 % IN    fid        File descriptor of XML file
0012 % IN    attrlist   List of tag attributes
0013 % IN    itype      Integer type of input file
0014 % IN    ftype      Floating point type of input file
0015 % IN    binary     Flag. 1 = binary file, 0 = ascii
0016 % IN    fid2       File descriptor of binary file
0017 
0018 % 2003-01-09   Created by Oliver Lemke.
0019 
0020 function result = xmlReadGridPos(fid, attrlist, itype, ftype, binary, fid2)
0021 
0022   result.idx   = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0023   fd1 = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0024   fd2 = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0025 
0026   result.fd = [fd1 fd2];
0027 
0028   clear fd1 fd2;

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005