X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDataEntry.h;h=0fde3e63bdf639a62c0c8c10ea2ae83687f8bbfd;hb=ef0e08814ac95a5412e8650112e23add221767d1;hp=1b9aba72dc86437a185a52ff689a6a7effd6d1e6;hpb=17ebda2271dd65565f512e835546b22c22ebbbb0;p=gdcm.git diff --git a/src/gdcmDataEntry.h b/src/gdcmDataEntry.h index 1b9aba72..0fde3e63 100644 --- a/src/gdcmDataEntry.h +++ b/src/gdcmDataEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.h,v $ Language: C++ - Date: $Date: 2006/04/11 16:03:26 $ - Version: $Revision: 1.14 $ + Date: $Date: 2007/08/22 16:14:03 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,15 +16,15 @@ =========================================================================*/ -#ifndef GDCMDATAENTRY_H -#define GDCMDATAENTRY_H +#ifndef G_DCMDATAENTRY_H_ +#define _GDCMDATAENTRY_H_ #include "gdcmDocEntry.h" #include // for GetDSValue #include -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- /** @@ -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 ); uint32_t ComputeFullLength(); // Set/Get data @@ -97,7 +98,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,7 +145,8 @@ 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; + mutable std::string *StrArea; // to avoid allocating useless std::string private: /// \brief 0 for straight entries, FLAG_PIXELDATA for Pixel Data entries