]> Creatis software - gdcm.git/blobdiff - src/gdcmDocEntry.h
src/CMakeLists.txt :
[gdcm.git] / src / gdcmDocEntry.h
index 37b9aa39eeb8074792d60c9e553c661c2e269641..d165fd40b437cb5b5cf0ef26b1ca287fb33a445e 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #include "gdcmDictEntry.h"
+//#include "gdcmValEntry.h"
 class gdcmHeader;
 
 //-----------------------------------------------------------------------------
@@ -18,15 +19,7 @@ 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();  };
 
@@ -111,7 +104,9 @@ public:
    /// \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); };
@@ -122,7 +117,12 @@ public:
 
    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);
@@ -131,6 +131,8 @@ private:
    /// Sets the depth level of a Dicom Header Entry embedded in a SeQuence 
    inline void SetSQDepthLevel(int depthLevel) { SQDepthLevel = depthLevel; };
       
+
+protected:
 // Variables
 
    gdcmDictEntry *entry;