Home > atmlab > arts > xml > xmlReadCIARecord.m

xmlReadCIARecord

PURPOSE ^

Reads a CIARecord from an XML file.

SYNOPSIS ^

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

DESCRIPTION ^

 Reads a CIARecord from an XML file.

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

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

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

 OUT   result     CIARecord
 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 ^

xmlReadCIARecord.m

SOURCE CODE ^

0001 % Reads a CIARecord 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 CIARecord structure.
0007 %
0008 % FORMAT   result = xmlReadCIARecord(fid, attrlist, itype, ftype, binary, fid2)
0009 %
0010 % OUT   result     CIARecord
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 = xmlReadCIARecord(fid, attrlist, itype, ftype, binary, fid2)
0021 
0022   if (~isequal(size(attrlist), [2, 2]))
0023     error('atmlab:xmlReadCIARecord', ...
0024           'Wrong number of attributes in CIARecord tag. Should be 2.');
0025   end
0026 
0027   result.molecule1 = attrlist{1, 2};
0028   result.molecule2 = attrlist{2, 2};
0029   result.data = xmlReadTag(fid, '', itype, ftype, binary, fid2);
0030

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