]> Creatis software - gdcm.git/blob - src/gdcmHeaderIdo.cxx
* src/*.h : add comments
[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
11 void gdcmHeaderIdo::BuildHeader(void) {
12    gdcmHeaderIdo::BuildHeader();
13         setAcrLibido();
14 }
15
16 /**
17  * \ingroup gdcmHeaderIdo
18  * \brief   Si le recognition code (0008,0010) s'avere etre "ACR_LIBIDO",
19  *          alors valide la reconnaissance du fichier en positionnant
20  *          filetype.
21  */
22 void gdcmHeaderIdo::setAcrLibido(void) {
23         std::string RecCode;
24         
25         RecCode = GetPubElValByNumber(0x0008, 0x0010);
26         if (RecCode == "ACRNEMA_LIBIDO" ||
27             RecCode == "CANRME_AILIBOD" )
28                 filetype = ACR_LIBIDO;
29         return;
30 }