X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmValEntry.h;h=f2811f75135772db71d9446a16f5c3402b9bee2e;hb=1ce3c187fd42db21539066a0ec8df1599e16eba2;hp=5a23a02a90403a9cb169e4658237510bfa3820be;hpb=57e3ee08a94dc1cd122a0b9c01f091e1b6913152;p=gdcm.git diff --git a/src/gdcmValEntry.h b/src/gdcmValEntry.h index 5a23a02a..f2811f75 100644 --- a/src/gdcmValEntry.h +++ b/src/gdcmValEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmValEntry.h,v $ Language: C++ - Date: $Date: 2004/06/21 12:38:29 $ - Version: $Revision: 1.12 $ + Date: $Date: 2004/09/03 20:27:44 $ + 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 @@ -16,8 +16,8 @@ =========================================================================*/ -#ifndef GDCMValEntry_H -#define GDCMValEntry_H +#ifndef GDCMVALENTRY_H +#define GDCMVALENTRY_H #include #include @@ -30,10 +30,9 @@ * \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(); @@ -41,27 +40,28 @@ public: /// \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; }; + + /// Sets the value (void *) of the current Dicom Document Entry + void SetVoidArea(void * val) { VoidArea = val; }; + virtual void Print(std::ostream &os = std::cout); - -protected: + virtual void Write(FILE *fp, FileType filetype); +protected: /// \brief for 'non string' values. Will be move to gdcmBinEntry, later - void* voidArea; // clean it out later + void* VoidArea; // clean it out later 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; }; //-----------------------------------------------------------------------------