+ // Test for entry 0028|0102
+ if ( !sqi->GetValEntry(0x0028,0x0102) )
+ {
+ std::cout << "ValEntry 0028|0102 not found" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+ if ( sqi->GetValEntry(0x0028,0x0102)->GetValue() != "7" )
+ {
+ std::cout << "Value 0028|0102 don't match" << std::endl
+ << "Read : " << sqi->GetValEntry(0x0028,0x0102)->GetValue()
+ << " - Expected : 7" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+
+ // Test for entry 0028|0103
+ if ( !sqi->GetValEntry(0x0028,0x0103) )
+ {
+ std::cout << "ValEntry 0028|0010 not found" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+ if ( sqi->GetValEntry(0x0028,0x0103)->GetValue() != "0" )
+ {
+ std::cout << "Value 0028|0103 don't match" << std::endl
+ << "Read : " << sqi->GetValEntry(0x0028,0x0103)->GetValue()
+ << " - Expected : 0" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+
+ // Test for entry 0005|0010
+ if ( !sqi->GetValEntry(0x0028,0x0010) )
+ {
+ std::cout << "BinEntry 0005|0010 not found" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+ if( sqi->GetBinEntry(0x0005,0x0010)->GetLength() != 6 )
+ {
+ std::cout << "BinEntry size 0005|0010 don't match" << std::endl
+ << "Read : " << sqi->GetValEntry(0x0005,0x0010)->GetLength()
+ << " - Expected : 6" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;