1 /*=========================================================================
4 Module: $RCSfile: gdcmDefaultDicts.cxx.in,v $
6 Date: $Date: 2005/04/05 10:56:25 $
7 Version: $Revision: 1.9 $
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"
41 static DICT_ENTRY datadir[] = {
42 @DICOM_DATA_DICTIONARY@
45 void FillDefaultDataDict(Dict *d)
48 DICT_ENTRY n = datadir[i];
51 const DictEntry e( n.group, n.element, n.vr, n.vm, n.name);
57 void FillDefaultTSDict(TSHT &ts)
62 void FillDefaultVRDict(VRHT &vr)
67 void FillDefaultDictGroupName(DictGroupNameHT &groupName)
69 @DICT_GROUP_NAME_DICTIONARY@
76 unsigned short element;
80 static ELEMENT dataElement[] = {
81 @DICOM_DIR_DICTIONARY@
84 void FillDefaultDIRDict(DicomDirElement *dde)
87 ELEMENT e = dataElement[i];
94 // Force to use the string comparision operator ==
96 if( strType == "metaElem" )
98 else if( strType == "patientElem" )
100 else if( strType == "studyElem" )
102 else if( strType == "serieElem" )
104 else if( strType == "imageElem" )
109 elem.Group = e.group;
110 elem.Elem = e.element;
111 elem.Value = e.value;
112 dde->AddEntry( type, elem);
113 e = dataElement[++i];
117 } //end gdcm namespace