X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmObject.h;h=f236d5915ccabffb8924963a07f0774c03e53e18;hb=399e06b19e761cf5a296a4ac091d653bbf99abe1;hp=ff560f5584d8063eede55cf7cc91d5bda9b4ca40;hpb=bfbd90327a5e45d972546843b0d9e4185e16cb24;p=gdcm.git diff --git a/src/gdcmObject.h b/src/gdcmObject.h index ff560f55..f236d591 100644 --- a/src/gdcmObject.h +++ b/src/gdcmObject.h @@ -8,7 +8,7 @@ #include "gdcmCommon.h" #include "gdcmHeaderEntry.h" #include "gdcmParser.h" - +#include "gdcmDicomDirElement.h" //----------------------------------------------------------------------------- class gdcmObject; typedef std::list ListContent; @@ -17,7 +17,8 @@ typedef std::list ListContent; class GDCM_EXPORT gdcmObject { public: - gdcmObject(ListTag::iterator begin,ListTag::iterator end); + gdcmObject(ListTag::iterator begin,ListTag::iterator end, + TagHeaderEntryHT *ptagHT, ListTag *plistEntries); ~gdcmObject(void); void SetPrintLevel(int level) { printLevel = level; }; @@ -25,14 +26,66 @@ public: std::string GetEntryByNumber(guint16 group, guint16 element); std::string GetEntryByName(TagName name); - + bool SetEntryByNumber(std::string val,guint16 group,guint16 element); + + TagHeaderEntryHT GetEntry(void); + ListTag GetListEntry(void); +/** + * \ingroup gdcmObject + * \brief returns an iterator on the first Header Entry (i.e Dicom Element), + * inside the DICOMDIR chained list, + * related to this 'Object' + * @return + */ + ListTag::iterator debut(void) + { return(beginObj);} +/** + * \ingroup gdcmObject + * \brief returns an iterator on the last Header Entry (i.e Dicom Element), + * inside the DICOMDIR chained list, + * related to this 'Object' + * @return + */ + ListTag::iterator fin (void) + { return(endObj); } + protected: + +void FillObject(std::list elemList); + +/** +* \brief iterator on the first Header Entry (i.e Dicom Element), +* inside the DICOMDIR chained list, +* related to this 'Object' +*/ ListTag::iterator beginObj; +/** +* \brief iterator on the last Header Entry (i.e Dicom Element), +* inside the DICOMDIR chained list, +* related to this 'Object' +*/ ListTag::iterator endObj; - +/** +* \brief pointer to the HTable of the gdcmParser, +* (because we don't know it within any gdcmObject) +*/ + TagHeaderEntryHT *ptagHT; +/** +* \brief pointer to the Chained List of the gdcmParser, +* (because we don't know it within any gdcmObject) +*/ + ListTag *plistEntries; +/** +* \brief +*/ int printLevel; + +/// used to pass variables to FillObject function +/// Work as 'global' variables + std::list::iterator debInsertion, finInsertion, i,j; private: + }; //-----------------------------------------------------------------------------