this class implements a loadable DICOM Data Dictionary
More...
this class implements a loadable DICOM Data Dictionary
Definition at line 62 of file dcdict.h.
DcmDataDictionary::DcmDataDictionary |
( |
OFBool |
loadBuiltin, |
|
|
OFBool |
loadExternal |
|
) |
| |
constructor
- Parameters
-
loadBuiltin | flag indicating if a built-in data dictionary (if any) should be loaded. |
loadExternal | flag indicating if an external data dictionary should be read from file. |
adds an entry to the dictionary.
Must be allocated via new. The entry becomes the property of the dictionary and will be deallocated (via delete) upon clear() or dictionary destruction. If an equivalent entry already exists it will be replaced by the new entry and the old entry deallocated (via delete).
- Parameters
-
entry | pointer to new entry |
const DcmDictEntry* DcmDataDictionary::findEntry |
( |
const DcmTagKey & |
key, |
|
|
const char * |
privCreator |
|
) |
| const |
dictionary lookup for the given tag key and private creator name.
First the normal tag dictionary is searched. If not found then the repeating tag dictionary is searched.
- Parameters
-
key | tag key |
privCreator | private creator name, may be NULL |
const DcmDictEntry* DcmDataDictionary::findEntry |
( |
const char * |
name | ) |
const |
dictionary lookup for the given attribute name.
First the normal tag dictionary is searched. If not found then the repeating tag dictionary is searched. Only considers standard attributes (i. e. without private creator)
- Parameters
-
looks up the given directory entry in the two dictionaries.
- Returns
- pointer to entry if found, NULL otherwise
OFBool DcmDataDictionary::isDictionaryLoaded |
( |
| ) |
const |
|
inline |
checks if a data dictionary is loaded (excluding the skeleton dictionary)
- Returns
- true if loaded, false if no dictionary is present
Definition at line 80 of file dcdict.h.
References dictionaryLoaded.
void DcmDataDictionary::loadBuiltinDictionary |
( |
| ) |
|
|
private |
loads a builtin (compiled) data dictionary.
Depending on which code is in use, this function may not do anything.
OFBool DcmDataDictionary::loadDictionary |
( |
const char * |
fileName, |
|
|
OFBool |
errorIfAbsent = OFTrue |
|
) |
| |
load a particular dictionary from file.
- Parameters
-
fileName | filename |
errorIfAbsent | causes the method to return false if the file cannot be opened |
- Returns
- false if the file contains a parse error or if the file could not be opened and errorIfAbsent was set, true otherwise.
OFBool DcmDataDictionary::loadExternalDictionaries |
( |
| ) |
|
|
private |
loads external dictionaries defined via environment variables
- Returns
- true if successful
OFBool DcmDataDictionary::loadSkeletonDictionary |
( |
| ) |
|
|
private |
loads the skeleton dictionary (the bare minimum needed to run)
- Returns
- true if successful
int DcmDataDictionary::numberOfSkeletonEntries |
( |
| ) |
const |
|
inline |
returns the number of skeleton entries.
The skeleton is a collection of dictionary entries which are always present, even if neither internal nor external dictionary have been loaded. It contains very basic things like item delimitation and sequence delimitation.
Definition at line 100 of file dcdict.h.
References skeletonCount.
OFBool DcmDataDictionary::reloadDictionaries |
( |
OFBool |
loadBuiltin, |
|
|
OFBool |
loadExternal |
|
) |
| |
reload data dictionaries.
First, all dictionary entries are deleted.
- Parameters
-
loadBuiltin | flag indicating if a built-in data dictionary (if any) should be loaded. |
loadExternal | flag indicating if an external data dictionary should be read from file. |
- Returns
- true if reload was successful, false if an error occurred
The documentation for this class was generated from the following file: