Program: gdcm
Module: $RCSfile: TestBug.cxx,v $
Language: C++
- Date: $Date: 2006/04/07 10:58:51 $
- Version: $Revision: 1.22 $
+ Date: $Date: 2007/03/23 15:03:00 $
+ Version: $Revision: 1.23 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
int TestBug(int argc, char *argv[])
{
+std::cout << "==========test" <<std::endl;
gdcm::File *f;
f = gdcm::File::New();
f->SetFileName( filename.c_str() );
}
f->Load( );
- f->Print();
+ // f->Print();
std::cout << "-------------End of Print file ------------" << std::cout;
- f->GetPubDict()->Print();
+ //f->GetPubDict()->Print();
std::cout << "-------------End of Print Dict ------------" << std::cout;
f->Delete();
Program: gdcm
Module: $RCSfile: TestDicomDir.cxx,v $
Language: C++
- Date: $Date: 2006/05/31 16:51:41 $
- Version: $Revision: 1.43 $
+ Date: $Date: 2007/03/23 15:03:01 $
+ Version: $Revision: 1.44 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
((gdcm::DataEntry *)e2)->GetString() )
{
+ /// \todo : check the value *written on disc*, not the value converted as a std::string
+ /// (this comparison doesn't make the difference between Ox(ff) and "255" ...)
+
// serious trouble : values differ in source and destination file
std::cout << "for gdcm DicomDir element (" << std::hex
<< e2->GetGroup() << "," <<e2->GetElement()
dicomdir->SetPrintLevel(level);
}
- // Test if the DicomDir is readable
+ // Test if the DICOMDIR file is readable
if( !dicomdir->IsReadable() )
{
std::cout<<" DicomDir '"<<file
<<"' is readable"<<std::endl;
}
- // Test if the DicomDir contains any patient
+ // Test if the gdcm::DicomDir contains any patient
if( !dicomdir->GetFirstPatient() )
{
std::cout<<" DicomDir '"<<file
pa1 = dicomdir->GetFirstPatient();
while ( pa1 )
- { // we process all the PATIENT of this DICOMDIR
+ { // we process all the PATIENT of this gdcm::DicomDir
std::cout << pa1->GetEntryString(0x0010, 0x0010) << std::endl; // Patient's Name
st1 = pa1->GetFirstStudy();