]> Creatis software - gdcm.git/blob - src/gdcmVR.h
* src/gdcmValEntry.h: member voidArea type changed from char* to void*.
[gdcm.git] / src / gdcmVR.h
1 // gdcmVR.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMVR_H
4 #define GDCMVR_H
5
6 #include "gdcmCommon.h"
7 #include <map>
8 #include <string>
9 #include <iostream>
10
11 //-----------------------------------------------------------------------------
12 typedef std::string VRKey;
13 typedef std::string VRAtr;
14 typedef std::map<VRKey, VRAtr> VRHT;    // Value Representation Hash Table
15
16 //-----------------------------------------------------------------------------
17 /*
18  * Container for dicom Value Representation Hash Table
19  * \note   This is a singleton
20  */
21 class GDCM_EXPORT gdcmVR 
22 {
23 public:
24         gdcmVR(void);
25    ~gdcmVR();
26
27    void Print(std::ostream &os = std::cout);
28    int Count(VRKey key);
29    bool IsVROfGdcmBinaryRepresentable(VRKey);
30    bool IsVROfGdcmStringRepresentable(VRKey);
31
32 private:
33    VRHT vr;
34 };
35
36 //-----------------------------------------------------------------------------
37 #endif