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