Mercurial > hg > ltpda
comparison m-toolbox/classes/@ltpda_tf/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_uoh(obj, node, inhists); | |
7 | |
8 %%%%%%%%%% Get properties from the node attributes | |
9 | |
10 %%%%%%%%%% Get properties from the child nodes | |
11 | |
12 % Get iunits | |
13 childNode = utils.xml.getChildByName(node, 'iunits'); | |
14 if ~isempty(childNode) | |
15 obj.iunits = unit(childNode, inhists); | |
16 end | |
17 | |
18 % Get ounits | |
19 childNode = utils.xml.getChildByName(node, 'ounits'); | |
20 if ~isempty(childNode) | |
21 obj.ounits = unit(childNode, inhists); | |
22 end | |
23 | |
24 end |