X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDocument.cxx;h=ee8bf9bf1c66fa35f613027d36d61dddb486984a;hb=d7b89e5cdd856374b0f752bb4417b54d84533ed9;hp=fc405eef2fa89450ea156c66e756ad751e0eba5a;hpb=4822f705ce310f318fd342fdcf00024f9a44acd4;p=gdcm.git diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index fc405eef..ee8bf9bf 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2005/10/26 06:09:34 $ - Version: $Revision: 1.308 $ + Date: $Date: 2005/10/26 09:09:31 $ + Version: $Revision: 1.310 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -386,7 +386,8 @@ FileType Document::GetFileType() * \brief Accessor to the Transfer Syntax (when present) of the * current document (it internally handles reading the * value from disk when only parsing occured). - * @return The encountered Transfer Syntax of the current document. + * @return The encountered Transfer Syntax of the current document, if DICOM. + * GDCM_UNKNOWN for ACR-NEMA files (or broken headers ...) */ std::string Document::GetTransferSyntax() { @@ -967,12 +968,11 @@ void Document::ParseDES(DocEntrySet *set, long offset, // It's too late to do the Job // (we should check the value, but we know it after LoadDocEntry ...) - // Uncoment this printf line to be able to 'follow' the DocEntries + // Uncoment this cerr line to be able to 'follow' the DocEntries // when something *very* strange happens - //printf( "%04x|%04x %s\n",newDocEntry->GetGroup(), - // newDocEntry->GetElement(), - // newDocEntry->GetVR().c_str() ); + if( Debug::GetDebugFlag() ) + std::cerr<GetKey()<<" "<GetVR()<