view m-toolbox/classes/@ltpda_uoh/fromDom.m @ 1:2014ba5b353a
database-connection-manager
Remove old code
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Sat, 03 Dec 2011 18:13:55 +0100 (2011-12-03)
parents
f0afece42f48
children
line source
+ −
+ − function fromDom(obj, node, inhists)
+ −
+ − %%%%%%%%%% Call super-class
+ −
+ − fromDom@ltpda_uo(obj, node, inhists);
+ −
+ − %%%%%%%%%% Get properties from the node attributes
+ −
+ − %%%%%%%%%% Get properties from the child nodes
+ −
+ − % Get hist
+ − histNode = utils.xml.getChildByName(node, 'hist');
+ − if ~isempty(histNode)
+ − inhistUUIDs = utils.xml.mchar(histNode.getAttribute('hist_UUID'));
+ − if ~isempty(inhistUUIDs)
+ − inhistUUIDs = regexp(inhistUUIDs, ' ', 'split');
+ − for uu = 1:numel(inhistUUIDs)
+ − obj.hist = [obj.hist utils.xml.getHistoryFromUUID(inhists, inhistUUIDs{uu})];
+ − end
+ − end
+ − end
+ −
+ − % Get procinfo
+ − childNode = utils.xml.getChildByName(node, 'procinfo');
+ − if ~isempty(childNode)
+ − obj.procinfo = utils.xml.getObject(childNode, inhists);
+ − end
+ −
+ − % Get plotinfo
+ − childNode = utils.xml.getChildByName(node, 'plotinfo');
+ − if ~isempty(childNode)
+ − obj.plotinfo = utils.xml.getObject(childNode, inhists);
+ − end
+ −
+ − end