1 /*=========================================================================
4 Module: $RCSfile: gdcmDefaultDicts.cxx.in,v $
6 Date: $Date: 2007/05/23 14:18:08 $
7 Version: $Revision: 1.13 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef GDCMDEFAULTDICTS_H
20 #define GDCMDEFAULTDICTS_H
23 #include "gdcmDictEntry.h"
26 #include "gdcmDictGroupName.h"
27 #include "gdcmDicomDirElement.h"
29 namespace GDCM_NAME_SPACE
41 static DICT_ENTRY datadir[] = {
42 @DICOM_DATA_DICTIONARY@
45 void FillDefaultDataDict(Dict *d)
49 DICT_ENTRY n = datadir[i];
52 e = DictEntry::New( n.group, n.element, n.vr, n.vm, n.name);
59 void FillDefaultTSDict(TSHT &ts)
64 void FillDefaultVRDict(VRHT &vr)
69 void FillDefaultDictGroupName(DictGroupNameHT &groupName)
71 @DICT_GROUP_NAME_DICTIONARY@
78 unsigned short element;
84 static ELEMENT dataElement[] = {
85 @DICOM_DIR_DICTIONARY@
88 void FillDefaultDIRDict(DicomDirElement *dde)
91 ELEMENT e = dataElement[i];
98 // Force to use the string comparison operator ==
100 if( strType == "metaElem" )
102 else if( strType == "patientElem" )
104 else if( strType == "studyElem" )
106 else if( strType == "serieElem" )
108 else if( strType == "imageElem" )
113 elem.Group = e.group;
114 elem.Elem = e.element;
116 elem.Value = e.value;
117 dde->AddEntry( type, elem);
118 e = dataElement[++i];
122 } //end gdcm namespace