-// $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
#include "gdcmDictEntry.h"
class gdcmHeader;
+#include <stdio.h>
///////////////////////////////////////////////////////////////////////////
// The dicom header of a Dicom file contains a set of such ELement VALUES
//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*);
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;};
};