Home > atmlab > arts > xml > xmlWriteGridPos.m

xmlWriteGridPos

PURPOSE ^

Writes a GridPos to an XML file.

SYNOPSIS ^

function xmlWriteGridPos(fid, fidb, data, precision)

DESCRIPTION ^

 Writes a GridPos to an XML file.

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

 FORMAT   xmlWriteGridPos(fid, fidb, data, precision)

 IN    fid        File descriptor
 IN    fidb       File descriptor for binary file
 IN    data       GridPos
 IN    precision  Precision for floats

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlWriteGridPos.m

SOURCE CODE ^

0001 % Writes a GridPos to an XML file.
0002 %
0003 %    Internal function that should never be called directly.
0004 %    Use *xmlStore* instead.
0005 %
0006 % FORMAT   xmlWriteGridPos(fid, fidb, data, precision)
0007 %
0008 % IN    fid        File descriptor
0009 % IN    fidb       File descriptor for binary file
0010 % IN    data       GridPos
0011 % IN    precision  Precision for floats
0012 
0013 % 2003-01-09  Created by Oliver Lemke.
0014 
0015 function xmlWriteGridPos(fid, fidb, data, precision)
0016 
0017 xmlWriteTag (fid, 'GridPos', []);
0018 
0019 xmlWriteIndex (fid, fidb, data.idx, precision);
0020 xmlWriteNumeric (fid, fidb, data.fd(1), precision);
0021 xmlWriteNumeric (fid, fidb, data.fd(2), precision);
0022 
0023 xmlWriteCloseTag (fid, 'GridPos');
0024

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