X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmVR.h;h=8071f48e4a351c29bceee970a08488ab122bdbd7;hb=327dfe7647e3720b0f3125f9b19397cb9afc0ed3;hp=82663675463063eb3cf0af556e130a25505ec369;hpb=06c1c583239fdf5196260e6ef83a78669c1bd17f;p=gdcm.git diff --git a/src/gdcmVR.h b/src/gdcmVR.h index 82663675..8071f48e 100644 --- a/src/gdcmVR.h +++ b/src/gdcmVR.h @@ -1,31 +1,62 @@ -// gdcmVR.h -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmVR.h,v $ + Language: C++ + Date: $Date: 2005/01/06 20:03:28 $ + 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 GDCMVR_H #define GDCMVR_H #include "gdcmCommon.h" #include #include +#include + +namespace gdcm +{ //----------------------------------------------------------------------------- typedef std::string VRKey; typedef std::string VRAtr; -typedef std::map VRHT; // Value Representation Hash Table +/// Value Representation Hash Table +typedef std::map VRHT; //----------------------------------------------------------------------------- /* * Container for dicom Value Representation Hash Table * \note This is a singleton */ -class GDCM_EXPORT gdcmVR { +class GDCM_EXPORT VR +{ public: - gdcmVR(void); - ~gdcmVR(); - int Count(VRKey key); + VR(void); + ~VR(); + + void Print(std::ostream &os = std::cout); + + int Count(VRKey const &key); + bool IsVROfBinaryRepresentable(VRKey const &tested); + bool IsVROfStringRepresentable(VRKey const &tested); + bool IsVROfSequence(VRKey const &tested); + + bool IsValidVR(VRKey const &key); private: VRHT vr; }; +} // end namespace gdcm //----------------------------------------------------------------------------- #endif