X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmVR.cxx;h=596ac9ee37a958771c2c8958ca9983ae55755f46;hb=8ac4df8c7543a827c7b89fc9bbcf86625f3c1afe;hp=3732f2bd60cc31a24a23d4ea7baaa52c9ad700a4;hpb=d441f6f81784ccb09ce382c2eb574bc2b737cc6e;p=gdcm.git diff --git a/src/gdcmVR.cxx b/src/gdcmVR.cxx index 3732f2bd..596ac9ee 100644 --- a/src/gdcmVR.cxx +++ b/src/gdcmVR.cxx @@ -1,24 +1,34 @@ -// gdcmVR.cxx -#include -//----------------------------------------------------------------------------- -#include "gdcmVR.h" -#include "gdcmUtil.h" +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmVR.cxx,v $ + Language: C++ + Date: $Date: 2004/09/27 08:39:08 $ + Version: $Revision: 1.17 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ -#ifndef PUB_DICT_PATH -# define PUB_DICT_PATH "../Dicts/" -#endif -#define DICT_VR "dicomVR.dic" +#include #include -#ifdef GDCM_NO_ANSI_STRING_STREAM -# include -# define ostringstream ostrstream -# else -# include -#endif + +#include "gdcmVR.h" +#include "gdcmUtil.h" +#include "gdcmDictSet.h" +#include "gdcmDebug.h" //----------------------------------------------------------------------------- -// Constructor / Destructor +/** + * \brief Constructor + */ gdcmVR::gdcmVR(void) { std::string filename=gdcmDictSet::BuildDictPath() + std::string(DICT_VR); @@ -49,6 +59,9 @@ gdcmVR::gdcmVR(void) from.close(); } +/** + * \brief Destructor + */ gdcmVR::~gdcmVR() { vr.clear(); } @@ -56,7 +69,6 @@ gdcmVR::~gdcmVR() { //----------------------------------------------------------------------------- // Print /** - * \ingroup gdcmVR * \brief Print all * @param os The output stream to be written to. */ @@ -64,7 +76,7 @@ void gdcmVR::Print(std::ostream &os) { std::ostringstream s; - for (VRHT::iterator it = vr.begin(); it != vr.end(); ++it) + for (gdcmVRHT::iterator it = vr.begin(); it != vr.end(); ++it) { s << "VR : "<first<<" = "<second<