X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmVR.cxx;h=bd179cf8538ea9334018a94dcf5e243bbe646c48;hb=8a9ebc9b9cb59f2bef1a3c54962c7b9d265e3db2;hp=57e1ce08d913f7eab8ce5f53a72da6f129ef5079;hpb=2f79ae87219e7b7433eb89f71d2f05a03f60af69;p=gdcm.git diff --git a/src/gdcmVR.cxx b/src/gdcmVR.cxx index 57e1ce08..bd179cf8 100644 --- a/src/gdcmVR.cxx +++ b/src/gdcmVR.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmVR.cxx,v $ Language: C++ - Date: $Date: 2005/01/17 11:13:21 $ - Version: $Revision: 1.32 $ + Date: $Date: 2005/02/01 10:29:56 $ + Version: $Revision: 1.34 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -26,8 +26,11 @@ namespace gdcm { +//----------------------------------------------------------------------------- void FillDefaultVRDict(VRHT &vr); + //----------------------------------------------------------------------------- +// Constructor / Destructor /** * \brief Constructor */ @@ -67,7 +70,6 @@ VR::VR() } } -//----------------------------------------------------------------------------- /** * \brief Destructor */ @@ -76,23 +78,6 @@ VR::~VR() vr.clear(); } -//----------------------------------------------------------------------------- -// Print -/** - * \brief Print all - * @param os The output stream to be written to. - */ -void VR::Print(std::ostream &os) -{ - std::ostringstream s; - - for (VRHT::iterator it = vr.begin(); it != vr.end(); ++it) - { - s << "VR : " << it->first << " = " << it->second << std::endl; - } - os << s.str(); -} - //----------------------------------------------------------------------------- // Public /** @@ -104,7 +89,6 @@ int VR::Count(VRKey const &key) return vr.count(key); } -//----------------------------------------------------------------------------- /** * \brief Simple predicate that checks whether the given argument * corresponds to the Value Representation of a \ref BinEntry . @@ -174,5 +158,21 @@ bool VR::IsValidVR(VRKey const &key) // Private //----------------------------------------------------------------------------- +// Print +/** + * \brief Print all + * @param os The output stream to be written to. + */ +void VR::Print(std::ostream &os) +{ + std::ostringstream s; + for (VRHT::iterator it = vr.begin(); it != vr.end(); ++it) + { + s << "VR : " << it->first << " = " << it->second << std::endl; + } + os << s.str(); +} + +//----------------------------------------------------------------------------- } // end namespace gdcm