File: gdcmDefaultGroupNames.cxx

package info (click to toggle)
gdcm 2.4.4-3%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 32,912 kB
  • ctags: 52,166
  • sloc: cpp: 188,527; ansic: 124,526; xml: 41,799; sh: 7,162; python: 3,667; cs: 2,128; java: 1,344; lex: 1,290; tcl: 677; php: 128; makefile: 116
file content (118 lines) | stat: -rw-r--r-- 3,321 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118

// GENERATED FILE DO NOT EDIT

/*=========================================================================

  Program: GDCM (Grassroots DICOM). A DICOM library

  Copyright (c) 2006-2011 Mathieu Malaterre
  All rights reserved.
  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/


#include "gdcmTypes.h"
#include "gdcmGroupDict.h"

namespace gdcm {

typedef struct
{
  uint16_t group;
  const char *abbreviation;
  const char *name;
} GROUP_ENTRY;

static GROUP_ENTRY groupname[] = {
  {0x0000,"CMD","Command"},
  {0x0002,"META","Meta Element"},
  {0x0004,"DIR","Directory"},
  {0x0004,"FST","File Set"},
  {0x0008,"ID","Identifying"},
  {0x0009,"SPII","SPI Identifying"},
  {0x0010,"PAT","Patient"},
  {0x0012,"CLI","Clinical Trial"},
  {0x0018,"ACQ","Acquisition"},
  {0x0019,"SPIA","SPI Acquisition"},
  {0x0020,"IMG","Image"},
  {0x0021,"SPIIM","SPI Image"},
  {0x0022,"OPHY","Ophtalmology"},
  {0x0028,"IMGP","Image Presentation"},
  {0x0032,"SDY","Study"},
  {0x0038,"VIS","Visit"},
  {0x003a,"WAV","Waveform"},
  {0x0040,"PRC","Procedure"},
  {0x0040,"MOD","Modality Worklist"},
  {0x0042,"EDOC","Encapsulated Document"},
  {0x0050,"XAD","XRay Angio Device"},
  {0x0050,"DEV","Device Information"},
  {0x0054,"NMI","Nuclear Medicine"},
  {0x0060,"HIS","Histogram"},
  {0x0070,"PRS","Presentation State"},
  {0x0072,"HST","Hanging Protocol"},
  {0x0088,"STO","Storage"},
  {0x0088,"MED","Medicine"},
  {0x0100,"AUTH","Authorization"},
  {0x0400,"DSIG","Digital Signature"},
  {0x1000,"COT","Code Table"},
  {0x1010,"ZMAP","Zonal Map"},
  {0x2000,"BFS","Film Session"},
  {0x2010,"BFB","Film Box"},
  {0x2020,"BIB","Image Box"},
  {0x2030,"BAB","Annotation"},
  {0x2040,"IOB","Overlay Box"},
  {0x2050,"PLUT","Presentation LUT"},
  {0x2100,"PJ","Print Job"},
  {0x2110,"PRINTER","Printer"},
  {0x2120,"QUE","Queue"},
  {0x2130,"PCT","Print Content"},
  {0x2200,"MEDIAC","Media Creation"},
  {0x3002,"RTI","RT Image"},
  {0x3004,"RTD","RT Dose"},
  {0x3006,"SSET","RT StructureSet"},
  {0x3008,"RTT","RT Treatment"},
  {0x300a,"RTP","RT Plan"},
  {0x300c,"RTR","RT Relationship"},
  {0x300e,"RTA","RT Approval"},
  {0x4000,"TXT","Text"},
  {0x4008,"RES","Results"},
  {0x4ffe,"MAC","MAC Parameters"},
  {0x5000,"CRV","Curve"},
  {0x5002,"CRV","Curve"},
  {0x5004,"CRV","Curve"},
  {0x5006,"CRV","Curve"},
  {0x5008,"CRV","Curve"},
  {0x500a,"CRV","Curve"},
  {0x500c,"CRV","Curve"},
  {0x500e,"CRV","Curve"},
  {0x5400,"WFM","Waveform Data"},
  {0x6000,"OLY","Overlays"},
  {0x6002,"OLY","Overlays"},
  {0x6004,"OLY","Overlays"},
  {0x6008,"OLY","Overlays"},
  {0x600a,"OLY","Overlays"},
  {0x600c,"OLY","Overlays"},
  {0x600e,"OLY","Overlays"},
  {0xfffc,"GEN","Generic"},
  {0x7fe0,"PXL","Pixel Data"},
  {0xffff,"UNK","Unknown"},
  {0,0,0} // will not be added to the dict
};

void GroupDict::FillDefaultGroupName()
{
  unsigned int i = 0;
  GROUP_ENTRY n = groupname[i];
  while( n.name != 0 )
  {
    Insert( n.group, n.abbreviation, n.name );
    n = groupname[++i];
  }
}

} // namespace gdcm