X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDataEntry.h;h=a4f25424ffcc6d3dc01c7d3be332a1dc3d5b64ea;hb=35ee8ee8af32946514713d271177df8bb2298eb2;hp=d043126c482780cb7c73ed0f9055b6a9e07ac4d9;hpb=8e7d7cb974953d9bc78b905451de7ca72887dc58;p=gdcm.git diff --git a/src/gdcmDataEntry.h b/src/gdcmDataEntry.h index d043126c..a4f25424 100644 --- a/src/gdcmDataEntry.h +++ b/src/gdcmDataEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.h,v $ Language: C++ - Date: $Date: 2007/08/29 15:30:48 $ - Version: $Revision: 1.20 $ + Date: $Date: 2011/03/29 07:36:00 $ + Version: $Revision: 1.23 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,8 +15,8 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ - -#ifndef G_DCMDATAENTRY_H_ + +#ifndef _GDCMDATAENTRY_H_ #define _GDCMDATAENTRY_H_ #include "gdcmDocEntry.h" @@ -73,6 +73,11 @@ public: void SetString(std::string const &value); std::string const &GetString() const; + std::string const &GetHexaRepresentation() const; + + bool IsNumerical(); + bool GetNumerical(std::vector &valueVector); + /// \brief Sets SelfArea void SetSelfArea(bool area) { SelfArea = area; } /// \brief True if Entry owns its BinArea @@ -145,9 +150,11 @@ protected: bool SelfArea; /// \brief std::string representable value of the Entry. /// Parts of a multivaluated data are separated by back-slash - //mutable std::string StrArea; mutable std::string *StrArea; // to avoid allocating useless std::string + /// \brief std::string Hexadecimal represention of the value Entry. + /// Parts of a multivaluated data are separated by back-slash + mutable std::string *StrHexaArea; // to avoid allocating useless std::string private: /// \brief 0 for straight entries, FLAG_PIXELDATA for Pixel Data entries TValueFlag Flag;