X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmElValue.h;h=9dec12ca15419b8e93f75bb64f9b0c5f23bf4217;hb=b8a5842638a6d29023d5440c09b08c94b0cbcc75;hp=a2dd3c2c6e594cb6c8d2e540459adcb8df21144e;hpb=1f5594f4e2bc55ccc70ff04cd66acc7cd8da74c8;p=gdcm.git diff --git a/src/gdcmElValue.h b/src/gdcmElValue.h index a2dd3c2c..9dec12ca 100644 --- a/src/gdcmElValue.h +++ b/src/gdcmElValue.h @@ -1,4 +1,4 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmElValue.h,v 1.2 2003/03/12 21:33:20 frog Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmElValue.h,v 1.5 2003/05/21 14:42:46 frog Exp $ #ifndef GDCMELVALUE_H #define GDCMELVALUE_H @@ -6,6 +6,7 @@ #include "gdcmDictEntry.h" class gdcmHeader; +#include /////////////////////////////////////////////////////////////////////////// // The dicom header of a Dicom file contains a set of such ELement VALUES @@ -23,7 +24,7 @@ private: //friend gdcmElValue * gdcmHeader::ReadNextElement(void); friend class gdcmHeader; public: - string value; + std::string value; size_t Offset; // Offset from the begining of file for direct user access gdcmElValue(gdcmDictEntry*); @@ -32,17 +33,18 @@ public: void SetImplicitVr(void) { ImplicitVr = true; }; bool IsImplicitVr(void) { return ImplicitVr; }; - guint16 GetGroup(void) { return entry->GetGroup(); }; - guint16 GetElement(void) { return entry->GetElement();}; - string GetKey(void) { return entry->GetKey(); }; - string GetName(void) { return entry->GetName(); }; - string GetVR(void) { return entry->GetVR(); }; - void SetVR(string v) { entry->SetVR(v); }; - void SetLength(guint32 l){ LgrElem = l; }; - guint32 GetLength(void) { return LgrElem; }; + gdcmDictEntry * GetDictEntry(void) { return entry; }; + guint16 GetGroup(void) { return entry->GetGroup(); }; + guint16 GetElement(void) { return entry->GetElement();}; + std::string GetKey(void) { return entry->GetKey(); }; + std::string GetName(void) { return entry->GetName(); }; + std::string GetVR(void) { return entry->GetVR(); }; + void SetVR(std::string v) { entry->SetVR(v); }; + void SetLength(guint32 l){ LgrElem = l; }; + guint32 GetLength(void) { return LgrElem; }; - void SetValue(string val){ value = val; }; - string GetValue(void) { return value;}; + void SetValue(std::string val){ value = val; }; + std::string GetValue(void) { return value;}; size_t GetOffset(void) { return Offset;}; };