2 //-----------------------------------------------------------------------------
8 #include "gdcmCommon.h"
9 #include "gdcmHeaderEntry.h"
10 #include "gdcmParser.h"
11 #include "gdcmDicomDirElement.h"
12 //-----------------------------------------------------------------------------
14 typedef std::list<gdcmObject *> ListContent;
16 //-----------------------------------------------------------------------------
21 class GDCM_EXPORT gdcmObject
26 * \brief Sets the print level for the Dicom Header
27 * \note 0 for Light Print; 1 for 'medium' Print, 2 for Heavy
29 void SetPrintLevel(int level)
30 { printLevel = level; };
31 virtual void Print(std::ostream &os = std::cout);
33 std::string GetEntryByNumber(guint16 group, guint16 element);
34 std::string GetEntryByName(TagName name);
35 bool SetEntryByNumber(std::string val,guint16 group,guint16 element);
37 TagHeaderEntryHT GetEntry(void);
38 ListTag GetListEntry(void);
40 void ResetBoundaries(int flag);
43 * \brief returns an iterator on the first Header Entry (i.e Dicom Element),
44 * inside the DICOMDIR chained list,
45 * related to this 'Object'
48 ListTag::iterator debut(void)
52 * \brief returns an iterator on the last Header Entry (i.e Dicom Element),
53 * inside the DICOMDIR chained list,
54 * related to this 'Object'
57 ListTag::iterator fin (void)
61 // constructor and destructor are protected to avoid end user to instanciate this class.
62 gdcmObject(ListTag::iterator begin,ListTag::iterator end,
63 TagHeaderEntryHT *ptagHT, ListTag *plistEntries);
67 void FillObject(std::list<gdcmElement> elemList);
70 * \brief iterator on the first Header Entry (i.e Dicom Element),
71 * inside the DICOMDIR chained list,
72 * related to this 'Object'
74 ListTag::iterator beginObj;
76 * \brief iterator on the last Header Entry (i.e Dicom Element),
77 * inside the DICOMDIR chained list,
78 * related to this 'Object'
80 ListTag::iterator endObj;
82 * \brief pointer to the HTable of the gdcmParser,
83 * (because we don't know it within any gdcmObject)
85 TagHeaderEntryHT *ptagHT;
87 * \brief pointer to the Chained List of the gdcmParser,
88 * (because we don't know it within any gdcmObject)
90 ListTag *plistEntries;
92 * \brief detail level to be printed
97 * \brief used to pass variables to FillObject function
98 * Works as 'global' variable
100 std::list<gdcmHeaderEntry *>::iterator debInsertion, finInsertion, i,j;
106 //-----------------------------------------------------------------------------