1 // $Header: /cvs/public/gdcm/src/Attic/gdcmElValue.h,v 1.6 2003/06/17 17:44:48 jpr Exp $
6 #include "gdcmDictEntry.h"
11 ///////////////////////////////////////////////////////////////////////////
12 // The dicom header of a Dicom file contains a set of such ELement VALUES
13 // (when successfuly parsed against a given Dicom dictionary)
14 class GDCM_EXPORT gdcmElValue {
18 bool ImplicitVr; // Even when reading explicit vr files, some
19 // elements happen to be implicit. Flag them here
20 // since we can't use the entry->vr without breaking
21 // the underlying dictionary.
22 void SetOffset(size_t of){ Offset = of; };
23 // FIXME: In fact we should be more specific and use :
24 //friend gdcmElValue * gdcmHeader::ReadNextElement(void);
25 friend class gdcmHeader;
28 size_t Offset; // Offset from the begining of file for direct user access
30 gdcmElValue(gdcmDictEntry*);
31 void SetDictEntry(gdcmDictEntry *NewEntry) { entry = NewEntry; };
32 bool IsVrUnknown(void) { return entry->IsVrUnknown(); };
33 void SetImplicitVr(void) { ImplicitVr = true; };
34 bool IsImplicitVr(void) { return ImplicitVr; };
36 gdcmDictEntry * GetDictEntry(void) { return entry; };
38 guint16 GetGroup(void) { return entry->GetGroup(); };
39 guint16 GetElement(void) { return entry->GetElement();};
40 std::string GetKey(void) { return entry->GetKey(); };
41 std::string GetName(void) { return entry->GetName(); };
42 std::string GetVR(void) { return entry->GetVR(); };
43 std::string GetValue(void) { return value; };
44 size_t GetOffset(void) { return Offset; };
45 guint32 GetLength(void) { return LgrElem; };
47 void SetVR(std::string v) { entry->SetVR(v); };
48 void SetLength(guint32 l) { LgrElem = l; };
49 void SetValue(std::string val){ value = val; };