]> Creatis software - gdcm.git/blob - src/gdcmVR.h
ENH: Adding 'gdcm' namespace. Be nice with me this was a ~13000 lines patch. Also...
[gdcm.git] / src / gdcmVR.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmVR.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/12 04:35:48 $
7   Version:   $Revision: 1.12 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #ifndef GDCMVR_H
20 #define GDCMVR_H
21
22 #include "gdcmCommon.h"
23 #include <map>
24 #include <string>
25 #include <iostream>
26 namespace gdcm 
27 {
28
29 //-----------------------------------------------------------------------------
30 typedef std::string VRKey;
31 typedef std::string VRAtr;
32 /// Value Representation Hash Table
33 typedef std::map<VRKey, VRAtr> VRHT;
34
35 //-----------------------------------------------------------------------------
36 /*
37  * Container for dicom Value Representation Hash Table
38  * \note   This is a singleton
39  */
40 class GDCM_EXPORT VR 
41 {
42 public:
43    VR(void);
44    ~VR();
45
46    void Print(std::ostream &os = std::cout);
47    int Count(VRKey key);
48    bool IsVROfGdcmBinaryRepresentable(VRKey);
49    bool IsVROfGdcmStringRepresentable(VRKey);
50
51 private:
52    VRHT vr;
53 };
54 } // end namespace gdcm
55
56 //-----------------------------------------------------------------------------
57 #endif