X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeaderIdo.cxx;h=cc905fdcd47c3faf6fd098a4631b56c509f17718;hb=d44cb38c3275dc302d9b523c17d346810f0e6644;hp=32edd1d938da504fe9e6089855a18b3131405e38;hpb=e06d61ba347d7f5f692a682434e089d939f85653;p=gdcm.git diff --git a/src/gdcmHeaderIdo.cxx b/src/gdcmHeaderIdo.cxx index 32edd1d9..cc905fdc 100644 --- a/src/gdcmHeaderIdo.cxx +++ b/src/gdcmHeaderIdo.cxx @@ -1,7 +1,18 @@ // gdcmHeaderIdo.cxx +//This is needed when compiling in debug mode +#ifdef _MSC_VER +// 'identifier' : class 'type' needs to have dll-interface to be used by +// clients of class 'type2' +#pragma warning ( disable : 4251 ) +// 'identifier' : identifier was truncated to 'number' characters in the +// debug information +#pragma warning ( disable : 4786 ) +#endif //_MSC_VER + #include "gdcmIdo.h" #include "gdcmUtil.h" +using namespace std; gdcmHeaderIdo::gdcmHeaderIdo (char* InFilename) : gdcmHeader(InFilename) @@ -14,26 +25,16 @@ void gdcmHeaderIdo::BuildHeader(void) { /** * \ingroup gdcmHeaderIdo - * \brief Pour les fichiers non TrueDicom, si le recognition - * code (0008,0010) s'avere etre "ACR_LIBIDO", alors - * valide la reconnaissance du fichier en positionnant + * \brief Si le recognition code (0008,0010) s'avere etre "ACR_LIBIDO", + * alors valide la reconnaissance du fichier en positionnant * filetype. */ void gdcmHeaderIdo::setAcrLibido(void) { string RecCode; - if ( (filetype != TrueDicom) - && (filetype != ExplicitVR) - && (filetype != ImplicitVR) ) { - printf("_setAcrLibido expects a presumably ACR file\n"); - // Recognition Code --> n'existe plus en DICOM V3 ... - RecCode = GetPubElValByNumber(0x0008, 0x0010); - // FIXME NOW - if (RecCode == "ACRNEMA_LIBIDO" || - RecCode == "CANRME_AILIBOD" ) - filetype = ACR_LIBIDO; - else - filetype = ACR; - } + RecCode = GetPubElValByNumber(0x0008, 0x0010); + if (RecCode == "ACRNEMA_LIBIDO" || + RecCode == "CANRME_AILIBOD" ) + filetype = ACR_LIBIDO; return; }