]> Creatis software - gdcm.git/blob - src/gdcmHeaderIdo.cxx
91a9aecfd1b584a9c89b959d704808f3e1d48d6e
[gdcm.git] / src / gdcmHeaderIdo.cxx
1 // gdcmHeaderIdo.cxx
2
3 #include "gdcmIdo.h"
4 #include "gdcmUtil.h"
5
6 gdcmHeaderIdo::gdcmHeaderIdo (char* InFilename)
7         : gdcmHeader(InFilename)
8 { }
9
10 void gdcmHeaderIdo::BuildHeader(void) {
11          gdcmHeaderIdo::BuildHeader();
12         setAcrLibido();
13 }
14
15 /**
16  * \ingroup gdcmHeaderIdo
17  * \brief   Si le recognition code (0008,0010) s'avere etre "ACR_LIBIDO",
18  *          alors valide la reconnaissance du fichier en positionnant
19  *          filetype.
20  */
21 void gdcmHeaderIdo::setAcrLibido(void) {
22         std::string RecCode;
23         
24         RecCode = GetPubElValByNumber(0x0008, 0x0010);
25         if (RecCode == "ACRNEMA_LIBIDO" ||
26             RecCode == "CANRME_AILIBOD" )
27                 filetype = ACR_LIBIDO;
28         return;
29 }