Program: gdcm
Module: $RCSfile: TestDicomDir.cxx,v $
Language: C++
- Date: $Date: 2005/01/31 03:22:24 $
- Version: $Revision: 1.35 $
+ Date: $Date: 2005/01/31 12:36:59 $
+ Version: $Revision: 1.36 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
<< std::endl<< std::endl;
// Read what we wrote
gdcm::DicomDir *d2 = new gdcm::DicomDir("NewDICOMDIR");
-
if (!d2)
{
std::cout << std::endl << std::endl
if (!d2)
{
std::cout << "NewDICOMDIR contains no Patient ?!?" << std::endl;
+ delete dicomdir;
+ delete d2;
return 1;
}
{ // we process all the PATIENT of this DICOMDIR
if ( CompareSQItem(pa2,pa1) == 1 )
- return 1;
+ {
+ delete dicomdir;
+ delete d2;
+ return 1;
+ }
// just to allow human reader to be sure ...
std::cout << pa2->GetEntryValue(0x0010, 0x0010)
while ( st1 && st2 )
{
if ( CompareSQItem(st2,st1) == 1 )
- return 1;
+ {
+ delete dicomdir;
+ delete d2;
+ return 1;
+ }
// just to allow human reader to be sure ...
std::cout << "--- "<< st2->GetEntryValue(0x0008, 0x1030);
while ( im1 && im2 ) // we process all the IMAGE of this serie
{
if ( CompareSQItem(im2,im1) == 1 )
+ {
+ delete dicomdir;
+ delete d2;
return 1;
+ }
im1 = se1->GetNextImage();
im2 = se2->GetNextImage();
std::cout << std::flush;
delete dicomdir;
+ delete d2;
return 0;
}