]> Creatis software - creaImageIO.git/blob - src/creaImageIODicomDatabaseStructure.h
add SOURCE_GROUP command to reorganize files in folder for visual studio project
[creaImageIO.git] / src / creaImageIODicomDatabaseStructure.h
1 #ifndef __creaImageIODicomDatabaseStructure_h_INCLUDED__
2 #define __creaImageIODicomDatabaseStructure_h_INCLUDED__
3
4 #include <creaImageIODicomNode.h>
5
6 namespace creaImageIO
7 {
8
9   struct DicomDatabaseStructure
10   {
11     /// The minimum DicomNode::Type value. Used to iterate over tables
12     static int TableBegin();
13         /// The maximum DicomNode::Type value. Used to iterate over tables
14         static int TableEnd();
15     /// Returns the name of the SQL table associated to a certain DicomNode::Type 
16         static const char* Table(DicomNode::Type);
17     
18     static int NbMandatoryFields(DicomNode::Type);
19     static const Field::Description& MandatoryField(DicomNode::Type,int);
20
21     static int NbDefaultFields(DicomNode::Type);
22     static const Field::Description& DefaultField(DicomNode::Type,int);
23
24     static int NbQueryFields(DicomNode::Type);
25     static const Field::Description& QueryField(DicomNode::Type,int);
26   };
27
28
29 } // namespace creaImageIO
30
31 #endif // #ifndef __creaImageIODicomDatabaseStructure_h_INCLUDED__