X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=src%2FgdcmDocEntry.h;h=d165fd40b437cb5b5cf0ef26b1ca287fb33a445e;hb=84c27c267cd859c2eb9a4559de5b1b745ffb7321;hp=37b9aa39eeb8074792d60c9e553c661c2e269641;hpb=28e546efc3dc694c93a006529aecad5c4821b432;p=gdcm.git diff --git a/src/gdcmDocEntry.h b/src/gdcmDocEntry.h index 37b9aa39..d165fd40 100644 --- a/src/gdcmDocEntry.h +++ b/src/gdcmDocEntry.h @@ -7,6 +7,7 @@ #include #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;