Mercurial > hg > ltpda
comparison m-toolbox/classes/@ltpda_uoh/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_uo(obj, node, inhists); | |
7 | |
8 %%%%%%%%%% Get properties from the node attributes | |
9 | |
10 %%%%%%%%%% Get properties from the child nodes | |
11 | |
12 % Get hist | |
13 histNode = utils.xml.getChildByName(node, 'hist'); | |
14 if ~isempty(histNode) | |
15 inhistUUIDs = utils.xml.mchar(histNode.getAttribute('hist_UUID')); | |
16 if ~isempty(inhistUUIDs) | |
17 inhistUUIDs = regexp(inhistUUIDs, ' ', 'split'); | |
18 for uu = 1:numel(inhistUUIDs) | |
19 obj.hist = [obj.hist utils.xml.getHistoryFromUUID(inhists, inhistUUIDs{uu})]; | |
20 end | |
21 end | |
22 end | |
23 | |
24 % Get procinfo | |
25 childNode = utils.xml.getChildByName(node, 'procinfo'); | |
26 if ~isempty(childNode) | |
27 obj.procinfo = utils.xml.getObject(childNode, inhists); | |
28 end | |
29 | |
30 % Get plotinfo | |
31 childNode = utils.xml.getChildByName(node, 'plotinfo'); | |
32 if ~isempty(childNode) | |
33 obj.plotinfo = utils.xml.getObject(childNode, inhists); | |
34 end | |
35 | |
36 end |