DataBase file Index.dat

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
hans
Posts: 10
Joined: Sun, 2005-10-30, 14:57

DataBase file Index.dat

#1 Post by hans »

Hello!

I would like to know how the file index.dat generated by dcmqrscp is made. In fact, i want to display on a Visual Basic 6 form the contents of the database without using dcmqrti that is not really suitable.

thanks for your help

Hans

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

This is a part of the code you should better not look at in detail, that is, this is not a piece of the code that is particularly clean or nice :wink:
All declarations are in dcmqrdb/dcmqridx.h. The index file is a binary copy (direct binary write/read) of certain memory structures. The first part consists of a constant number of struct StudyDescRecord entries. The number of entries is hard-coded as DB_UpperMaxStudies in dcmqrdb/dcmqrdbi.h, by default 500. This is followed by a flexible number of struct IdxRecord structures, one for each image in the index file. So far, so good, but the content of these structs is not exactly self explanatory - read them and you'll know what I mean.

hans
Posts: 10
Joined: Sun, 2005-10-30, 14:57

#3 Post by hans »

hello,

thank you for your answer but it seems to difficult for me.
Anyway, i have found another solution for my problem.

Hans

Post Reply

Who is online

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