]> Creatis software - gdcm.git/blob - src/gdcmVR.cxx
* src/*.cxx : added pragma disable 4786/4251 to get rid of ~4300 warning
[gdcm.git] / src / gdcmVR.cxx
1 // gdcmVR.cxx
2
3 //This is needed when compiling in debug mode
4 #ifdef _MSC_VER
5 // 'identifier' : class 'type' needs to have dll-interface to be used by
6 // clients of class 'type2'
7 #pragma warning ( disable : 4251 )
8 // 'identifier' : identifier was truncated to 'number' characters in the
9 // debug information
10 #pragma warning ( disable : 4786 )
11 #endif //_MSC_VER
12
13 #include "gdcmVR.h"
14
15 gdcmVR::gdcmVR(void) {
16    vr["AE"] = "Application Entity";    // At most 16 bytes
17    vr["AS"] = "Age String";            // Exactly 4 bytes
18    vr["AT"] = "Attribute Tag";         // 2 16-bit unsigned short integers
19    vr["CS"] = "Code String";           // At most 16 bytes
20    vr["DA"] = "Date";                  // Exactly 8 bytes
21    vr["DS"] = "Decimal String";        // At most 16 bytes
22    vr["DT"] = "Date Time";             // At most 26 bytes
23    vr["FL"] = "Floating Point Single"; // 32-bit IEEE 754:1985 float
24    vr["FD"] = "Floating Point Double"; // 64-bit IEEE 754:1985 double
25    vr["IS"] = "Integer String";        // At most 12 bytes
26    vr["LO"] = "Long String";           // At most 64 chars
27    vr["LT"] = "Long Text";             // At most 10240 chars
28    vr["OB"] = "Other Byte String";     // String of bytes (vr independant)
29    vr["OW"] = "Other Word String";     // String of 16-bit words (vr dep)
30    vr["PN"] = "Person Name";           // At most 64 chars
31    vr["SH"] = "Short String";          // At most 16 chars
32    vr["SL"] = "Signed Long";           // Exactly 4 bytes
33    vr["SQ"] = "Sequence of Items";     // Not Applicable
34    vr["SS"] = "Signed Short";          // Exactly 2 bytes
35    vr["ST"] = "Short Text";            // At most 1024 chars
36    vr["TM"] = "Time";                  // At most 16 bytes
37    vr["UI"] = "Unique Identifier";     // At most 64 bytes
38    vr["UL"] = "Unsigned Long ";        // Exactly 4 bytes
39    vr["UN"] = "Unknown";               // Any length of bytes
40    vr["US"] = "Unsigned Short ";       // Exactly 2 bytes
41    vr["UT"] = "Unlimited Text";        // At most 2^32 -1 chars
42 }
43
44 gdcmVR::~gdcmVR() {
45    vr.clear();
46 }
47
48 int gdcmVR::Count(VRKey key) {
49    return vr.count(key);
50 }