1 /*=========================================================================
4 Module: $RCSfile: gdcmDefaultDicts.cxx.in,v $
6 Date: $Date: 2005/01/07 12:29:17 $
7 Version: $Revision: 1.5 $
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 "gdcmDicomDirElement.h"
40 static DICT_ENTRY datadir[] = {
41 @DICOM_DATA_DICTIONARY@
44 void FillDefaultDataDict(Dict *d)
47 DICT_ENTRY n = datadir[i];
50 const DictEntry e( n.group, n.element, n.vr, n.vm, n.name);
56 void FillDefaultTSDict(TSHT & ts)
61 void FillDefaultVRDict(VRHT & vr)
70 unsigned short element;
74 static ELEMENT dataelement[] = {
75 @DICOM_DIR_DICTIONARY@
78 void FillDefaultDIRDict(DicomDirElement *dde)
81 ELEMENT e = dataelement[i];
86 elem.Elem = e.element;
88 dde->AddNewEntry( e.type, elem);
93 } //end gdcm namespace