#include <stdio.h>
#include "gdcmDictEntry.h"
+//#include "gdcmValEntry.h"
class gdcmHeader;
//-----------------------------------------------------------------------------
class GDCM_EXPORT gdcmDocEntry {
public:
gdcmDocEntry(gdcmDictEntry*);
-
- /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted into a
- /// 'string', if it's stored as an integer in the Dicom Header of the
- /// current Dicom Header Entry
- /// TODO virtual?
- //inline std::string GetValue(void) { return value; };
- // Pour continuer a compiler :-(
- inline std::string GetValue(void) { return "value"; };
-
+
/// Returns the Dicom Group number of the current Dicom Header Entry
inline guint16 GetGroup(void) { return entry->GetGroup(); };
/// \brief Gets the print level for the Dicom Header Elements
int GetPrintLevel(void) { return(printLevel); };
- void Print (std::ostream & os = std::cout);
+ virtual void Print (std::ostream & os = std::cout);
+
+ void gdcmDocEntry::PrintCommonPart(std::ostream & os);
/// Gets the depth level of a Dicom Header Entry embedded in a SeQuence
inline int GetSQDepthLevel(void) { return (SQDepthLevel); };
bool isItemDelimitor();
bool isSequenceDelimitor();
-
+
+ inline int GetDepthLevel(void)
+ {return(SQDepthLevel);}
+ void SetDepthLevel(int depth)
+ {SQDepthLevel = depth;}
+
private:
// FIXME: In fact we should be more specific and use :
// friend gdcmDocEntry * gdcmHeader::ReadNextElement(void);
/// Sets the depth level of a Dicom Header Entry embedded in a SeQuence
inline void SetSQDepthLevel(int depthLevel) { SQDepthLevel = depthLevel; };
+
+protected:
// Variables
gdcmDictEntry *entry;