X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmElValue.h;h=0d91c3d78df545554238ba533865d8010abbbdb9;hb=49236d643fd420ddc5787a6cab3bbc0a45729fd0;hp=9dec12ca15419b8e93f75bb64f9b0c5f23bf4217;hpb=05abd393cf82392c894dd1d852e2273b0648671d;p=gdcm.git diff --git a/src/gdcmElValue.h b/src/gdcmElValue.h index 9dec12ca..0d91c3d7 100644 --- a/src/gdcmElValue.h +++ b/src/gdcmElValue.h @@ -1,4 +1,4 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmElValue.h,v 1.5 2003/05/21 14:42:46 frog Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmElValue.h,v 1.8 2003/10/09 13:22:54 jpr Exp $ #ifndef GDCMELVALUE_H #define GDCMELVALUE_H @@ -13,41 +13,45 @@ class gdcmHeader; // (when successfuly parsed against a given Dicom dictionary) class GDCM_EXPORT gdcmElValue { private: - gdcmDictEntry *entry; - guint32 LgrElem; - bool ImplicitVr; // Even when reading explicit vr files, some - // elements happen to be implicit. Flag them here - // since we can't use the entry->vr without breaking - // the underlying dictionary. - void SetOffset(size_t of){ Offset = of; }; + gdcmDictEntry *entry; + guint32 LgrElem; + bool ImplicitVr; // Even when reading explicit vr files, some + // elements happen to be implicit. Flag them here + // since we can't use the entry->vr without breaking + // the underlying dictionary. + void SetOffset(size_t of){ Offset = of; }; // FIXME: In fact we should be more specific and use : //friend gdcmElValue * gdcmHeader::ReadNextElement(void); friend class gdcmHeader; public: std::string value; - size_t Offset; // Offset from the begining of file for direct user access + void * voidArea; // unsecure memory area to hold 'non string' values + // (ie : Lookup Tables, overlays) + size_t Offset; // Offset from the begining of file for direct user access - gdcmElValue(gdcmDictEntry*); - void SetDictEntry(gdcmDictEntry *NewEntry) { entry = NewEntry; }; - bool IsVrUnknown(void) { return entry->IsVrUnknown(); }; - void SetImplicitVr(void) { ImplicitVr = true; }; - bool IsImplicitVr(void) { return ImplicitVr; }; + gdcmElValue(gdcmDictEntry*); + void SetDictEntry(gdcmDictEntry *NewEntry) { entry = NewEntry; }; + bool IsVrUnknown(void) { return entry->IsVrUnknown(); }; + void SetImplicitVr(void) { ImplicitVr = true; }; + bool IsImplicitVr(void) { return ImplicitVr; }; - 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(std::string val){ value = val; }; - std::string GetValue(void) { return value;}; + 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(); }; + std::string GetValue(void) { return value; }; + void * GetVoidArea(void) { return voidArea; }; + size_t GetOffset(void) { return Offset; }; + guint32 GetLength(void) { return LgrElem; }; + + void SetVR(std::string v) { entry->SetVR(v); }; + void SetLength(guint32 l) { LgrElem = l; }; + void SetValue(std::string val){ value = val; }; + void SetVoidArea(void * area) { voidArea = area; }; - size_t GetOffset(void) { return Offset;}; }; - #endif