X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDataEntry.h;h=dbad01c2826c1a000ca4801a81759edc9549738e;hb=713d0f3d28a6176fab6d57e031633061dc7354a7;hp=adcc8235450cf3582bf6a8875e2c2bee4fb2deaa;hpb=8fd45dc6d321d1419854dc0e4fa6a37d6826b655;p=gdcm.git diff --git a/src/gdcmDataEntry.h b/src/gdcmDataEntry.h index adcc8235..dbad01c2 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/05/23 14:18:08 $ - Version: $Revision: 1.16 $ + Date: $Date: 2007/09/18 16:07:20 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,9 +15,9 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ - -#ifndef GDCMDATAENTRY_H -#define GDCMDATAENTRY_H + +#ifndef G_DCMDATAENTRY_H_ +#define _GDCMDATAENTRY_H_ #include "gdcmDocEntry.h" @@ -51,7 +51,8 @@ public: void Print(std::ostream &os = std::cout, std::string const &indent = ""); // Write - virtual void WriteContent(std::ofstream *fp, FileType filetype); + virtual void WriteContent(std::ofstream *fp, FileType filetype, + bool insideMetaElements, bool insideSequence); uint32_t ComputeFullLength(); // Set/Get data @@ -72,6 +73,8 @@ public: void SetString(std::string const &value); std::string const &GetString() const; + std::string const &GetHexaRepresentation() const; + /// \brief Sets SelfArea void SetSelfArea(bool area) { SelfArea = area; } /// \brief True if Entry owns its BinArea @@ -97,7 +100,7 @@ public: /// \brief Sets the state (Loaded, NotLoaded, UnFound, ...) of the DataEntry void SetState(const TValueState &state) { State = state; } /// \brief Returns the state (Loaded, NotLoaded, ...) of the DataEntry - const TValueState &GetState() const { return State; } + const TValueState &GetState() const { return State; } /// \brief true when value Entry not loaded bool IsNotLoaded() { return State == STATE_NOTLOADED; } /// \brief true if Entry not found @@ -144,9 +147,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;