]> Creatis software - gdcm.git/blob - src/gdcmHeaderIdo.cxx
ostream replaced by std::ostream
[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
16 gdcmHeaderIdo::gdcmHeaderIdo (char* InFilename)
17         : gdcmHeader(InFilename)
18 { }
19
20 void gdcmHeaderIdo::BuildHeader(void) {
21          gdcmHeaderIdo::BuildHeader();
22         setAcrLibido();
23 }
24
25 /**
26  * \ingroup gdcmHeaderIdo
27  * \brief   Si le recognition code (0008,0010) s'avere etre "ACR_LIBIDO",
28  *          alors valide la reconnaissance du fichier en positionnant
29  *          filetype.
30  */
31 void gdcmHeaderIdo::setAcrLibido(void) {
32         string RecCode;
33         
34         RecCode = GetPubElValByNumber(0x0008, 0x0010);
35         if (RecCode == "ACRNEMA_LIBIDO" ||
36             RecCode == "CANRME_AILIBOD" )
37                 filetype = ACR_LIBIDO;
38         return;
39 }