Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2005/10/18 19:54:26 $
- Version: $Revision: 1.296 $
+ Date: $Date: 2005/10/18 21:19:57 $
+ Version: $Revision: 1.297 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Group0002Parsed = false;
- gdcmWarningMacro( "Starting parsing of file: " << Filename.c_str());
+ gdcmDebugMacro( "Starting parsing of file: " << Filename.c_str());
Fp->seekg(0, std::ios::end);
long lgt = Fp->tellg(); // total length of the file
}
first = false;
} // end While
- gdcmWarningMacro( "Exit from ParseDES, delim-mode " << delim_mode );
+ gdcmDebugMacro( "Exit from ParseDES, delim-mode " << delim_mode );
}
/**
VRKey vr;
Fp->read(&(vr[0]),(size_t)2);
- gdcmWarningMacro( "--> VR: " << vr )
+ gdcmDebugMacro( "--> VR: " << vr )
if ( !CheckDocEntryVR(vr) )
{
gdcmWarningMacro( "Unknown VR '" << vr << "'" )
char *entCur = deb + 128;
if ( memcmp(entCur, "DICM", (size_t)4) == 0 )
{
- gdcmWarningMacro( "Looks like DICOM Version3 (preamble + DCM)" );
+ gdcmDebugMacro( "Looks like DICOM Version3 (preamble + DCM)" );
// Group 0002 should always be VR, and the first element 0000
// Let's be carefull (so many wrong headers ...)
// instead of just checking for UL, OB and UI !? group 0000
{
Filetype = ExplicitVR;
- gdcmWarningMacro( "Group 0002 : Explicit Value Representation");
+ gdcmDebugMacro( "Group 0002 : Explicit Value Representation");
}
else
{
Filetype = ImplicitVR;
- gdcmWarningMacro( "Group 0002 :Not an explicit Value Representation;"
+ gdcmErrorMacro( "Group 0002 :Not an explicit Value Representation;"
<< "Looks like a bugged Header!");
}
if ( net2host )
{
SwapCode = 4321;
- gdcmWarningMacro( "HostByteOrder != NetworkByteOrder");
+ gdcmDebugMacro( "HostByteOrder != NetworkByteOrder");
}
else
{
SwapCode = 1234;
- gdcmWarningMacro( "HostByteOrder = NetworkByteOrder");
+ gdcmDebugMacro( "HostByteOrder = NetworkByteOrder");
}
// Position the file position indicator at first tag
memcmp(entCur, "OB", (size_t)2) == 0 )
{
Filetype = ExplicitVR;
- gdcmWarningMacro( "Group 0002 : Explicit Value Representation");
+ gdcmDebugMacro( "Group 0002 : Explicit Value Representation");
return true;
}
}
}
}
}
- gdcmWarningMacro( "Found VR: " << vr << " / Real VR: " << realVR );
+ gdcmDebugMacro( "Found VR: " << vr << " / Real VR: " << realVR );
DocEntry *newEntry;
if ( Global::GetVR()->IsVROfSequence(realVR) )
Program: gdcm
Module: $RCSfile: gdcmFile.cxx,v $
Language: C++
- Date: $Date: 2005/10/18 19:54:26 $
- Version: $Revision: 1.278 $
+ Date: $Date: 2005/10/18 21:19:57 $
+ Version: $Revision: 1.279 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
}
else
{
- gdcmWarningMacro( "Unfound Pixel Spacing (0018,1164)" );
+ gdcmWarningMacro( "Unfound Imager Pixel Spacing (0018,1164)" );
}
/* const std::string &strImagerPixelSpacing = GetEntryString(0x0018,0x1164);
if ( strImagerPixelSpacing != GDCM_UNFOUND )
if ( !ReadTag(testGroup, testElem) )
{
+ gdcmErrorMacro( "ReadTag did not succeed..." );
return 0;
}
//// Then read the associated Item Length
long currentPosition = Fp->tellg();
uint32_t itemLength = ReadInt32();
- {
- gdcmWarningMacro( "Basic Item Length is: "
- << itemLength << std::endl
+ gdcmDebugMacro( "Basic Item Length is: " << itemLength
<< " at address: " << std::hex << (unsigned int)currentPosition);
- }
return itemLength;
}