comparison m-toolbox/classes/@ltpda_data/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 fromDom(obj, node, inhists)
3
4 %%%%%%%%%% Call super-class
5
6 fromDom@ltpda_nuo(obj, node, inhists);
7
8 %%%%%%%%%% Get properties from the node attributes
9
10 %%%%%%%%%% Get properties from the child nodes
11
12 % Get yunits
13 childNode = utils.xml.getChildByName(node, 'yunits');
14 if ~isempty(childNode)
15 obj.yunits = unit(childNode, inhists);
16 end
17
18 % Get y
19 childNode = utils.xml.getChildByName(node, 'y');
20 if ~isempty(childNode)
21 obj.y = utils.xml.getNumber(childNode);
22 end
23
24 % Get dy
25 childNode = utils.xml.getChildByName(node, 'dy');
26 if ~isempty(childNode)
27 obj.dy = utils.xml.getNumber(childNode);
28 end
29
30 end