Mercurial > hg > ltpda
comparison m-toolbox/classes/@ltpda_tf/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_uoh(obj, dom, parent, collectedHist); | |
5 | |
6 % Add iunits | |
7 if isa(obj.iunits, 'unit') | |
8 iunitsNode = dom.createElement('iunits'); | |
9 collectedHist = obj.iunits.attachToDom(dom, iunitsNode, collectedHist); | |
10 parent.appendChild(iunitsNode); | |
11 end | |
12 | |
13 % Add ounits | |
14 if isa(obj.ounits, 'unit') | |
15 ounitsNode = dom.createElement('ounits'); | |
16 collectedHist = obj.ounits.attachToDom(dom, ounitsNode, collectedHist); | |
17 parent.appendChild(ounitsNode); | |
18 end | |
19 | |
20 end |