X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmValEntry.h;h=ddf3a73171bcc2388d198f3962aa233752338b14;hb=8ac4df8c7543a827c7b89fc9bbcf86625f3c1afe;hp=eeecd5d5f2c1939a03746d09989bf70f72d03d4d;hpb=5f059c9a5febdd08bc360421311319fd9a806b75;p=gdcm.git diff --git a/src/gdcmValEntry.h b/src/gdcmValEntry.h index eeecd5d5..ddf3a731 100644 --- a/src/gdcmValEntry.h +++ b/src/gdcmValEntry.h @@ -3,12 +3,12 @@ Program: gdcm Module: $RCSfile: gdcmValEntry.h,v $ Language: C++ - Date: $Date: 2004/06/22 14:37:04 $ - Version: $Revision: 1.14 $ + Date: $Date: 2004/09/27 08:39:08 $ + 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 - http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -16,8 +16,8 @@ =========================================================================*/ -#ifndef GDCMValEntry_H -#define GDCMValEntry_H +#ifndef GDCMVALENTRY_H +#define GDCMVALENTRY_H #include #include @@ -30,39 +30,33 @@ * \brief The dicom header of a Dicom file contains a set of such entries * (when successfuly parsed against a given Dicom dictionary) */ -class GDCM_EXPORT gdcmValEntry : public gdcmDocEntry { - +class GDCM_EXPORT gdcmValEntry : public gdcmDocEntry +{ public: - gdcmValEntry(gdcmDictEntry* e); - gdcmValEntry(gdcmDocEntry* d); virtual ~gdcmValEntry(); /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted into a /// 'string', if it's stored as an integer in the header of the /// current Dicom Document Entry - inline std::string GetValue(void) { return value; }; + std::string GetValue() { return Value; }; /// Sets the value (string) of the current Dicom Document Entry - inline void SetValue(std::string val) { value = val; }; - + void SetValue(std::string const & val) { Value = val; }; + virtual void Print(std::ostream &os = std::cout); - virtual void gdcmValEntry::Write(FILE *fp); -protected: + virtual void Write(FILE *fp, FileType filetype); - /// \brief for 'non string' values. Will be move to gdcmBinEntry, later - void* voidArea; // clean it out later +protected: private: - // Members : /// \brief Document Entry value, internaly represented as a std::string - /// The Value Representation (\ref gdcmVR) is indenpendently used + /// The Value Representation (\ref gdcmVR) is independently used /// in order to interpret (decode) this field. - std::string value; - + std::string Value; }; //-----------------------------------------------------------------------------