]> Creatis software - gdcm.git/blob - src/gdcmHeaderIdo.cxx
* src/*.cxx : added pragma disable 4786/4251 to get rid of ~4300 warning
[gdcm.git] / src / gdcmHeaderIdo.cxx
1 // gdcmHeaderIdo.cxx
2
3 //This is needed when compiling in debug mode
4 #ifdef _MSC_VER
5 // 'identifier' : class 'type' needs to have dll-interface to be used by
6 // clients of class 'type2'
7 #pragma warning ( disable : 4251 )
8 // 'identifier' : identifier was truncated to 'number' characters in the
9 // debug information
10 #pragma warning ( disable : 4786 )
11 #endif //_MSC_VER
12
13 #include "gdcmIdo.h"
14 #include "gdcmUtil.h"
15 using namespace std;
16
17 gdcmHeaderIdo::gdcmHeaderIdo (char* InFilename)
18         : gdcmHeader(InFilename)
19 { }
20
21 void gdcmHeaderIdo::BuildHeader(void) {
22          gdcmHeaderIdo::BuildHeader();
23         setAcrLibido();
24 }
25
26 /**
27  * \ingroup gdcmHeaderIdo
28  * \brief   Si le recognition code (0008,0010) s'avere etre "ACR_LIBIDO",
29  *          alors valide la reconnaissance du fichier en positionnant
30  *          filetype.
31  */
32 void gdcmHeaderIdo::setAcrLibido(void) {
33         string RecCode;
34         
35         RecCode = GetPubElValByNumber(0x0008, 0x0010);
36         if (RecCode == "ACRNEMA_LIBIDO" ||
37             RecCode == "CANRME_AILIBOD" )
38                 filetype = ACR_LIBIDO;
39         return;
40 }