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: 2007/05/23 14:18:09 $
00007   Version:   $Revision: 1.5 $
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_NAME_SPACE 
00028 {
00029 //-----------------------------------------------------------------------------
00030 // Constructor / Destructor
00037 DicomEntry::DicomEntry(const uint16_t &group,const uint16_t &elem,
00038                        const VRKey &vr)
00039 {
00040    //Tag.SetGroupElement(group);
00041    //Tag.SetElement(elem);
00042    Tag.SetGroupElement(group,elem);
00043    VR = vr;
00044 }
00045 
00049 DicomEntry::~DicomEntry()
00050 {
00051 }
00052 
00053 //-----------------------------------------------------------------------------
00054 // Public
00055 
00056 //-----------------------------------------------------------------------------
00057 // Protected
00058 
00059 //-----------------------------------------------------------------------------
00060 // Private
00061 
00062 //-----------------------------------------------------------------------------
00063 // Print
00069 void DicomEntry::Print(std::ostream &os, std::string const & )
00070 {
00071    os << GetKey(); 
00072    os << " [" << VR  << "] ";
00073 }
00074 
00075 //-----------------------------------------------------------------------------
00076 } // end namespace gdcm
00077 

Generated on Fri Aug 24 12:59:30 2007 for gdcm by  doxygen 1.4.6