+ }
+ std::cout << "First Item ->ValEntry 0028|0103 found" << std::endl;
+ 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->GetBinEntry(0x0005,0x0010) )
+ {
+ std::cout << "BinEntry 0005|0010 not found" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+ std::cout << "First Item ->BinEntry 0005|0010 found" << std::endl;
+ 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;
+ return 1;
+ }
+
+ std::cout << "Length BinEntry 0005|0010 OK" << std::endl;
+
+ if( memcmp(sqi->GetBinEntry(0x0005,0x0010)->GetBinArea(),binVal,6)!=0 )
+ {
+ std::cout << "Value 0005|0010 don't match (BinEntry)" << std::endl
+ << " ... Failed" << std::endl;
+ delete fh1;
+ delete f1;
+ return 1;
+ }
+ std::cout << "Value BinEntry 0005|0010 OK" << std::endl;