comparison m-toolbox/classes/@mfir/fromDom.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1
2 function obj = fromDom(obj, node, inhists)
3
4 % Get shape
5 objShape = utils.xml.getShape(node);
6
7 if any(objShape==0)
8
9 obj = mfir.initObjectWithSize(objShape(1), objShape(2));
10
11 else
12
13
14
15 %%%%%%%%%% Call super-class
16
17 fromDom@ltpda_filter(obj, node, inhists);
18
19 %%%%%%%%%% Get properties from the node attributes
20
21 %%%%%%%%%% Get properties from the child nodes
22
23 % Get gd
24 childNode = utils.xml.getChildByName(node, 'gd');
25 if ~isempty(childNode)
26 obj.gd = utils.xml.getNumber(childNode);
27 end
28
29 end
30
31 end