]> Creatis software - gdcm.git/blob - src/gdcmVR.h
* src/*.cxx *.h Reference to License.htm fixed to License.html.
[gdcm.git] / src / gdcmVR.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmVR.h,v $
5   Language:  C++
6   Date:      $Date: 2004/09/27 08:39:08 $
7   Version:   $Revision: 1.11 $
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
27 //-----------------------------------------------------------------------------
28 typedef std::string gdcmVRKey;
29 typedef std::string gdcmVRAtr;
30 /// Value Representation Hash Table
31 typedef std::map<gdcmVRKey, gdcmVRAtr> gdcmVRHT;
32
33 //-----------------------------------------------------------------------------
34 /*
35  * Container for dicom Value Representation Hash Table
36  * \note   This is a singleton
37  */
38 class GDCM_EXPORT gdcmVR 
39 {
40 public:
41    gdcmVR(void);
42    ~gdcmVR();
43
44    void Print(std::ostream &os = std::cout);
45    int Count(gdcmVRKey key);
46    bool IsVROfGdcmBinaryRepresentable(gdcmVRKey);
47    bool IsVROfGdcmStringRepresentable(gdcmVRKey);
48
49 private:
50    gdcmVRHT vr;
51 };
52
53 //-----------------------------------------------------------------------------
54 #endif