X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmVR.cxx;h=c400af1489e6200db6120feb75d53fe0b650c765;hb=b080175e6fc56ccf766909400687b1ab156386e7;hp=f002d0a083aa98525580bd8c0f11e3dfcd0c720b;hpb=d7a4d5d474ae599b723e52ebda8bd3fc6cee752a;p=gdcm.git diff --git a/src/gdcmVR.cxx b/src/gdcmVR.cxx index f002d0a0..c400af14 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/10 18:54:39 $ + Version: $Revision: 1.16 $ + + 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.htm 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<