Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

gdcmDicomEntry.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmDicomEntry.cxx,v $
00005   Language:  C++
00006   Date:      $Date: 2005/10/21 07:38:57 $
00007   Version:   $Revision: 1.3 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 #include "gdcmDicomEntry.h"
00020 #include "gdcmDebug.h"
00021 #include "gdcmUtil.h"
00022 
00023 #include <iomanip> // for std::ios::left, ...
00024 #include <fstream>
00025 #include <stdio.h> // for sprintf
00026 
00027 namespace gdcm 
00028 {
00029 //-----------------------------------------------------------------------------
00030 // Constructor / Destructor
00037 DicomEntry::DicomEntry(const uint16_t &group,const uint16_t &elem,
00038                        const VRKey &vr)
00039 {
00040    Tag.SetGroup(group);
00041    Tag.SetElement(elem);
00042    VR = vr;
00043 }
00044 
00048 DicomEntry::~DicomEntry()
00049 {
00050 }
00051 
00052 //-----------------------------------------------------------------------------
00053 // Public
00061 TagKey DicomEntry::TranslateToKey(uint16_t group, uint16_t elem)
00062 {
00063    // according to 'Purify', TranslateToKey is one of the most
00064    // time consuming methods.
00065    // Let's try to shorten it !
00066    return TagKey(group,elem);
00067 }
00068 
00069 //-----------------------------------------------------------------------------
00070 // Protected
00071 
00072 //-----------------------------------------------------------------------------
00073 // Private
00074 
00075 //-----------------------------------------------------------------------------
00076 // Print
00082 void DicomEntry::Print(std::ostream &os, std::string const & )
00083 {
00084    os << GetKey(); 
00085    os << " [" << VR  << "] ";
00086 }
00087 
00088 //-----------------------------------------------------------------------------
00089 } // end namespace gdcm
00090 

Generated on Fri Jan 20 10:14:24 2006 for gdcm by  doxygen 1.4.4