X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmObject.h;h=e3be05aa2a031f2ab7c922a28418181b4490bc18;hb=81e328d78c2028a7c2ecb86e6cee04839f4d56b2;hp=f482355324f973daedafdc784a1239f931c51575;hpb=eb835becc89cc1b8a1dc1f122f54b7659a6127be;p=gdcm.git diff --git a/src/gdcmObject.h b/src/gdcmObject.h index f4823553..e3be05aa 100644 --- a/src/gdcmObject.h +++ b/src/gdcmObject.h @@ -14,13 +14,13 @@ class gdcmObject; typedef std::list ListContent; //----------------------------------------------------------------------------- +/** + * \ingroup gdcmObject + * \brief Base object + */ class GDCM_EXPORT gdcmObject { public: - gdcmObject(ListTag::iterator begin,ListTag::iterator end, - TagHeaderEntryHT *ptagHT, ListTag *plistEntries); - ~gdcmObject(void); - /** * \ingroup gdcmParser * \brief Sets the print level for the Dicom Header @@ -47,31 +47,24 @@ public: */ 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 - */ + /** + * \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); } -/** - * \ingroup gdcmObject - * \brief Sets the iterator on the 'new' last Header Entry (i.e Dicom Element), - * inside the DICOMDIR chained list, - * related to this 'Object' - * \warning : NOT end user intended function - * \todo find a trick to make this function useless. -* @return - */ - ListTag::iterator SetEndObj(ListTag::iterator newEnd) - { endObj=newEnd; } - protected: + // constructor and destructor are protected to avoid end user to instanciate this class. + gdcmObject(ListTag::iterator begin,ListTag::iterator end, + TagHeaderEntryHT *ptagHT, ListTag *plistEntries); + ~gdcmObject(void); + -void FillObject(std::list elemList); + void FillObject(std::list elemList); /** * \brief iterator on the first Header Entry (i.e Dicom Element), @@ -96,12 +89,14 @@ void FillObject(std::list elemList); */ ListTag *plistEntries; /** -* \brief +* \brief detail level to be printed */ int printLevel; -/// used to pass variables to FillObject function -/// Work as 'global' variables + /** + * \brief used to pass variables to FillObject function + * Works as 'global' variable + */ std::list::iterator debInsertion, finInsertion, i,j; private: