2 # Tree construction attributes
4 # Testing attribute: TDF_TagSource
6 # Testing command: NewChild
7 # Testing command: NewTag
14 # Add an attribute to a data framework
17 SetTagger D ${aLabel1}
18 SetName D ${aLabel1} ${aName1}
22 SetTagger D ${aLabel2}
23 SetName D ${aLabel2} ${aName2}
25 set aChild1 [NewChild D ${aLabel1}]
28 for {set i 1} {${i}<${aTagNumber}} {incr i} {
31 set aChild2 [NewChild D ${aLabel2}]
33 # Get a value of the attribute
34 set aTag1 [lindex [split ${aChild1} ${aTokList}] 2]
35 set aTag2 [lindex [split ${aChild2} ${aTokList}] 2]
36 if { ${aTag1}!=1 || ${aTag2}!=${aTagNumber}} {
37 puts "aTag1=${aTag1} aTag2=${aTag2} aTagNumber=${aTagNumber}"
38 puts "Set TDF_TagSource attribute: Error"
41 puts "Set TDF_TagSource attribute: OK"