Home > classes > @ao > private > xml_read_specwin.m

xml_read_specwin

PURPOSE ^

XML_READ_SPECWIN read a specwin object from the given input node.

SYNOPSIS ^

function s = xml_read_specwin(node)

DESCRIPTION ^

 XML_READ_SPECWIN read a specwin object from the given input node.
 
 M Hewitson 16-02-07
 
 $Id: xml_read_specwin.html,v 1.5 2007/11/07 20:58:33 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function s = xml_read_specwin(node)
0002 
0003 % XML_READ_SPECWIN read a specwin object from the given input node.
0004 %
0005 % M Hewitson 16-02-07
0006 %
0007 % $Id: xml_read_specwin.html,v 1.5 2007/11/07 20:58:33 hewitson Exp $
0008 %
0009 
0010 disp('-- reading specwin');
0011 
0012 children = node.getChildNodes;
0013 for j=1:children.getLength
0014   ch = children.item(j-1);  
0015   nodeName = char(ch.getNodeName);  
0016   switch nodeName
0017     case 'Name'
0018       name = char(ch.getTextContent);
0019     case 'Version'
0020       ver = char(ch.getTextContent);
0021     case 'Alpha'      
0022       alpha = str2num(char(ch.getTextContent));
0023     case 'PSLL'      
0024       psll = str2num(char(ch.getTextContent));
0025     case 'N'      
0026       N = str2num(char(ch.getTextContent));
0027       
0028     otherwise
0029 %       warning('!!! unknown specwin field');
0030   end
0031   
0032 end
0033 
0034 if strcmp(name, 'Kaiser') || strcmp(name, 'Flattop')
0035   s = specwin(name, N, psll);
0036 else
0037   s = specwin(name, psll);
0038 end
0039

Generated on Tue 06-Nov-2007 12:08:42 by m2html © 2003