]> Creatis software - gdcm.git/blob - src/gdcmDicomEntry.cxx
Fix mistypings
[gdcm.git] / src / gdcmDicomEntry.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomEntry.cxx,v $
5   Language:  C++
6   Date:      $Date: 2007/05/23 14:18:09 $
7   Version:   $Revision: 1.5 $
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 #include "gdcmDicomEntry.h"
20 //#include "gdcmDebug.h"
21 //#include "gdcmUtil.h"
22
23 //#include <iomanip> // for std::ios::left, ...
24 #include <fstream>
25 //#include <stdio.h> // for sprintf
26
27 namespace GDCM_NAME_SPACE 
28 {
29 //-----------------------------------------------------------------------------
30 // Constructor / Destructor
31 /**
32  * \brief   Constructor
33  * @param   group      DICOM-Group Number
34  * @param   elem       DICOM-Element Number
35  * @param   vr         Value Representation
36 */
37 DicomEntry::DicomEntry(const uint16_t &group,const uint16_t &elem,
38                        const VRKey &vr)
39 {
40    //Tag.SetGroupElement(group);
41    //Tag.SetElement(elem);
42    Tag.SetGroupElement(group,elem);
43    VR = vr;
44 }
45
46 /**
47  * \brief   Destructor
48  */
49 DicomEntry::~DicomEntry()
50 {
51 }
52
53 //-----------------------------------------------------------------------------
54 // Public
55
56 //-----------------------------------------------------------------------------
57 // Protected
58
59 //-----------------------------------------------------------------------------
60 // Private
61
62 //-----------------------------------------------------------------------------
63 // Print
64 /**
65  * \brief   Prints an entry of the Dicom DictionaryEntry
66  * @param   os ostream we want to print in
67  * @param indent Indentation string to be prepended during printing
68  */
69 void DicomEntry::Print(std::ostream &os, std::string const & )
70 {
71    os << GetKey(); 
72    os << " [" << VR  << "] ";
73 }
74
75 //-----------------------------------------------------------------------------
76 } // end namespace gdcm
77