X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmContentEntry.h;h=0b61d9c1908c224994cde0fd73d653ad37210aaf;hb=ae64a0ce6b0e05103e13d8b2eedc87b7fcf02380;hp=b947a389637e072d52c3e0d56feb3fffb2796507;hpb=2919038a10834b08a8ab3f168d14511721a007cd;p=gdcm.git diff --git a/src/gdcmContentEntry.h b/src/gdcmContentEntry.h index b947a389..0b61d9c1 100644 --- a/src/gdcmContentEntry.h +++ b/src/gdcmContentEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmContentEntry.h,v $ Language: C++ - Date: $Date: 2005/01/25 16:32:45 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/09/02 07:10:03 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -39,13 +39,14 @@ class GDCM_EXPORT ContentEntry : public DocEntry public: virtual void WriteContent(std::ofstream *fp, FileType filetype) = 0; - // Accessors are protected, not to be invoked by end user /// Sets the value (string) of the current Dicom entry - virtual void SetValue(std::string const &val) { Value = val; }; - - /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted + virtual void SetValue(std::string const &val) { Value = val; } + /// \brief Returns the 'Value' (e.g. "Dupond^Marcel") converted /// into a 'string', event if it's physically stored on disk as an integer - std::string const &GetValue() const { return Value; }; + /// (e.g. : 0x000c returned as "12") + std::string const &GetValue() const { return Value; } + + void Copy(DocEntry *doc); protected: // Contructors are protected, not to be invoked by end user.