14 #ifndef vtkDICOMDictionary_h
15 #define vtkDICOMDictionary_h
17 #include "vtkDICOMModule.h"
18 #include "vtkDICOMDictEntry.h"
19 #include "vtkDICOMDictHash.h"
22 #define DICT_HASH_TABLE_SIZE 4096
23 #define DICT_PRIVATE_TABLE_SIZE 512
33 unsigned short HashSize;
34 unsigned short DataSize;
35 const unsigned short *TagHashTable;
36 const unsigned short *KeyHashTable;
72 const char *key,
const char *privateDict);
89 friend class vtkDICOMDictionaryInitializer;
96 static unsigned int HashLongString(
const char *lo,
char stripped[64]);
103 static Dict *FindPrivateDict(
const char *name);
106 static Dict DictData;
109 static DictHashEntry *PrivateDictTable[DICT_PRIVATE_TABLE_SIZE];
118 class VTKDICOM_EXPORT vtkDICOMDictionaryInitializer
121 vtkDICOMDictionaryInitializer();
122 ~vtkDICOMDictionaryInitializer();
124 vtkDICOMDictionaryInitializer(
const vtkDICOMDictionaryInitializer&);
125 vtkDICOMDictionaryInitializer& operator=(
126 const vtkDICOMDictionaryInitializer&);
129 static vtkDICOMDictionaryInitializer vtkDICOMDictionaryInitializerInstance;
An entry in the DICOM dictionary.
Definition: vtkDICOMDictEntry.h:24
Provide access to the DICOM tag dictionary.
Definition: vtkDICOMDictionary.h:27
static void RemovePrivateDictionary(const char *name)
Remove a private dictionary.
static vtkDICOMDictEntry FindDictEntry(const vtkDICOMTag tag)
Find the dictionary entry for the given tag.
Definition: vtkDICOMDictionary.h:44
static vtkDICOMDictEntry FindDictEntry(const char *key, const char *privateDict)
Search for a private dictionary entry by key.
static vtkDICOMDictEntry FindDictEntry(const char *key)
Find the dictionary for the given key.
Definition: vtkDICOMDictionary.h:48
static vtkDICOMDictEntry FindDictEntry(const vtkDICOMTag tag, const char *privateDict)
Include a private dictionary when searching for the tag.
static void AddPrivateDictionary(Dict *dict)
Add the hash table for a private dictionary.
A (group,element) identifier tag for DICOM attributes.
Definition: vtkDICOMTag.h:23
A struct to statically store DICOM dictionary entries.
Definition: vtkDICOMDictEntry.h:28
A struct to store a DICOM dictionary hash table.
Definition: vtkDICOMDictionary.h:31