X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDataEntry.h;h=67413d8c7bb75cb638a49085c6ecb85cfe8ed49a;hb=37396740c1274ab73b324850554e78a174e3ace6;hp=eba677c719869b9995c90711a2dc1f84e7cf4f2c;hpb=31c93581b706e9e198b3cf1c4959b344c895087a;p=gdcm.git diff --git a/src/gdcmDataEntry.h b/src/gdcmDataEntry.h index eba677c7..67413d8c 100644 --- a/src/gdcmDataEntry.h +++ b/src/gdcmDataEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.h,v $ Language: C++ - Date: $Date: 2005/11/14 14:23:43 $ - Version: $Revision: 1.9 $ + Date: $Date: 2005/11/29 12:48:45 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,7 +38,9 @@ class GDCM_EXPORT DataEntry : public DocEntry gdcmTypeMacro(DataEntry); public: +/// \brief Contructs a DataEntry with a RefCounter from DictEntry static DataEntry *New(DictEntry *e) {return new DataEntry(e);} +/// \brief Contructs a DataEntry with a RefCounter from DocEntry static DataEntry *New(DocEntry *d) {return new DataEntry(d);} // Print @@ -92,8 +94,10 @@ public: }; // State + /// \brief Sets the state (Loaded, NotLoaded, UnFound, ...) of the DataEntry void SetState(const TValueState &state) { State = state; } - const TValueState &GetState() const { return State; } + /// \brief Returns the state (Loaded, NotLoaded, ...) of the DataEntry + 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 @@ -111,7 +115,7 @@ public: /// \brief true id Entry is a Pixel Data entry bool IsPixelData() { return (Flag &FLAG_PIXELDATA) != 0; } - void Copy(DocEntry *doc); + virtual void Copy(DocEntry *doc); /// \brief returns the size threshold above which an element value /// will NOT be *printed* in order no to polute the screen output @@ -145,8 +149,7 @@ private: /// \brief Entry status:STATE_NOTLOADED,STATE_UNFOUND,STATE_UNREAD,STATE_LOADED TValueState State; - /// \brief Size threshold above which an element val - /// By default, this upper bound is fixed to 64 bytes. + /// \brief Size threshold above which an element is printed static uint32_t MaxSizePrintEntry; };