FAQ #6: How to compile the data dictionary (dicom.dic) into the binaries?

Frequently Asked Questions regarding DCMTK

Moderator: FAQ Team

Post Reply
Message
Author
Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1435
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

FAQ #6: How to compile the data dictionary (dicom.dic) into the binaries?

#1 Post by Marco Eichelberg »

:?: All of the programs load a data dictionary from the text file "/usr/local/dicom/lib/dicom.dic" before they can do anything. The overhead for this flexibility is very high. I want my programs to start much faster.

:!: You can use a built-in in data dictionary instead. The code for this already exists (dcmtk/dcmdata/libsrc/dcdictzz.cc) and can be regenerated at any time by (see the dcmdata Makefile: dcmtk/dcmdata/libsrc/Makefile.in). You can even have the best of both worlds and have the main data dictionary built-in with additions loaded from text files (via the DCMDICTPATH environment variable). See the documentation file "dcmtk/dcmdata/doc/datadict.txt" for more details about using DICOM data dictionaries. The example Visual C++ project makefiles for the Windows platform already use the built-in data dictionary code.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest