+ if ( !sqi )
+ {
+ std::cout << "Sequence 0088|0200 has no SQItem" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+
+ std::cout << "First Item found" << std::endl;
+
+ // Test for entry 0028|0010
+ if ( !sqi->GetValEntry(0x0028,0x0010) )
+ {
+ std::cout << "ValEntry 0028|0010 not found" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+ std::cout << "First Item ->ValEntry 0028|0010 found" << std::endl;
+ if ( sqi->GetValEntry(0x0028,0x0010)->GetValue() != "128" )
+ {
+ std::cout << "Value 0028|0010 don't match" << std::endl
+ << "Read : " << sqi->GetValEntry(0x0028,0x0010)->GetValue()
+ << " - Expected : 128" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+
+ // Test for entry 0028|0011
+ if ( !sqi->GetValEntry(0x0028,0x0011) )
+ {
+ std::cout << "ValEntry 0028|0011 not found" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+ std::cout << "First Item ->ValEntry 0028|0011 found" << std::endl;
+ if ( sqi->GetValEntry(0x0028,0x0011)->GetValue() != "128" )
+ {
+ std::cout << "Value 0028|0011 don't match" << std::endl
+ << "Read : " << sqi->GetValEntry(0x0028,0x0011)->GetValue()
+ << " - Expected : 128" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+
+ // Test for entry 0028|0100
+ if ( !sqi->GetValEntry(0x0028,0x0100) )
+ {
+ std::cout << "ValEntry 0028|0100 not found" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;