5 # Testing attribute: User defined (additional GUID) TDataStd_RealArray
7 # Testing command: SetRealArray
8 # Testing command: GetRealArray
14 # Add an attributes to a data framework
21 set aGuid1 "12e94511-6dbc-11d4-b9c8-0060b0ee281b"
23 SetRealArray D ${aLabel} ${isDelta} ${aFrom1} ${aTo1} ${aSetAttr11} ${aSetAttr12}
24 SetRealArray D ${aLabel} ${isDelta} -g ${aGuid1} ${aFrom1} ${aTo1} ${aSetAttr11} ${aSetAttr12}
26 # Close/Open the transaction
29 # Forget the attribute
32 # Close/Open the transaction
41 set aFile ${imagedir}/caf001-C5.cbf
48 # Get a value of the attribute
50 set aMessage1 "Add TDataStd_RealArray attribute: Error"
51 set aGetAttr1 [GetRealArray D ${aLabel}]
52 set aLen1 [llength ${aGetAttr1}]
53 set aGetAttr2 [GetRealArray D ${aLabel} ${aGuid1}]
54 set aLen2 [llength ${aGetAttr2}]
56 if { ${aLen1} != [expr ${aTo1} - ${aFrom1} + 1] } {
61 if { ${aLen2} != [expr ${aTo1} - ${aFrom1} + 1] } {
67 set aGetAttr11 [lindex ${aGetAttr1} 0]
68 set aGetAttr21 [lindex ${aGetAttr2} 0]
69 if { ${aGetAttr11} != ${aGetAttr21} } {
71 puts "aGetAttr11=${aGetAttr11}"
72 puts "aGetAttr21=${aGetAttr21}"
75 set aGetAttr12 [lindex ${aGetAttr1} 1]
76 set aGetAttr22 [lindex ${aGetAttr2} 1]
77 if { ${aGetAttr12} != ${aGetAttr22} } {
79 puts "aGetAttr12=${aGetAttr12}"
80 puts "aGetAttr22=${aGetAttr22}"
84 if { ${IsGood} == 0} {
85 puts "Add TDataStd_RealArray attribute: Error"
87 puts "Add TDataStd_RealArray attribute: OK"