comparison m-toolbox/classes/@ltpda_data/attachToDom.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 collectedHist = attachToDom(obj, dom, parent, collectedHist)
3
4 collectedHist = attachToDom@ltpda_nuo(obj, dom, parent, collectedHist);
5
6 % Add yunits
7 if isa(obj.yunits, 'unit')
8 yunitsNode = dom.createElement('yunits');
9 collectedHist = obj.yunits.attachToDom(dom, yunitsNode, collectedHist);
10 parent.appendChild(yunitsNode);
11 end
12
13 % Add y
14 yNode = dom.createElement('y');
15 utils.xml.attachNumberToDom(obj.y, dom, yNode)
16 parent.appendChild(yNode);
17
18 % Add dy
19 dyNode = dom.createElement('dy');
20 utils.xml.attachNumberToDom(obj.dy, dom, dyNode)
21 parent.appendChild(dyNode);
22
23 end