]> Creatis software - gdcm.git/blob - src/gdcmVR.cxx
* More memmory link related corrections and documentation fixes.
[gdcm.git] / src / gdcmVR.cxx
1 // gdcmVR.cxx
2
3 #include "gdcmVR.h"
4
5 gdcmVR::gdcmVR(void) {
6    vr["AE"] = "Application Entity";    // At most 16 bytes
7    vr["AS"] = "Age String";            // Exactly 4 bytes
8    vr["AT"] = "Attribute Tag";         // 2 16-bit unsigned short integers
9    vr["CS"] = "Code String";           // At most 16 bytes
10    vr["DA"] = "Date";                  // Exactly 8 bytes
11    vr["DS"] = "Decimal String";        // At most 16 bytes
12    vr["DT"] = "Date Time";             // At most 26 bytes
13    vr["FL"] = "Floating Point Single"; // 32-bit IEEE 754:1985 float
14    vr["FD"] = "Floating Point Double"; // 64-bit IEEE 754:1985 double
15    vr["IS"] = "Integer String";        // At most 12 bytes
16    vr["LO"] = "Long String";           // At most 64 chars
17    vr["LT"] = "Long Text";             // At most 10240 chars
18    vr["OB"] = "Other Byte String";     // String of bytes (vr independant)
19    vr["OW"] = "Other Word String";     // String of 16-bit words (vr dep)
20    vr["PN"] = "Person Name";           // At most 64 chars
21    vr["SH"] = "Short String";          // At most 16 chars
22    vr["SL"] = "Signed Long";           // Exactly 4 bytes
23    vr["SQ"] = "Sequence of Items";     // Not Applicable
24    vr["SS"] = "Signed Short";          // Exactly 2 bytes
25    vr["ST"] = "Short Text";            // At most 1024 chars
26    vr["TM"] = "Time";                  // At most 16 bytes
27    vr["UI"] = "Unique Identifier";     // At most 64 bytes
28    vr["UL"] = "Unsigned Long ";        // Exactly 4 bytes
29    vr["UN"] = "Unknown";               // Any length of bytes
30    vr["US"] = "Unsigned Short ";       // Exactly 2 bytes
31    vr["UT"] = "Unlimited Text";        // At most 2^32 -1 chars
32 }
33
34 gdcmVR::~gdcmVR() {
35    vr.clear();
36 }
37
38 int gdcmVR::Count(VRKey key) {
39    return vr.count(key);
40 }